You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defdecode(byte_data):
""" Decode the byte data to a string if not None. :param bytes byte_data: the data to decode :rtype: str """ifbyte_dataisNone:
returnNonereturnbyte_data.decode()
when receives byte_data = b'\xf0\x01ActiveMQ' raises:
stomp/backward3.py", line 29, in decode
return byte_data.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 0: invalid continuation byte
when receives
byte_data = b'\xf0\x01ActiveMQ'
raises:https://docs.python.org/3/library/stdtypes.html#bytes.decode
This could be fixed to by changing errors parameter from default
errors="strict"
:The text was updated successfully, but these errors were encountered: