Commit caeac622 authored by carlosperate's avatar carlosperate

Merge branch 'pyserial-unicode'

parents 7b7a6381 af8e9149
...@@ -48,7 +48,7 @@ def string(buffer): ...@@ -48,7 +48,7 @@ def string(buffer):
if sys.version_info[0] == 3: if sys.version_info[0] == 3:
return ''.join(s) return ''.join(s)
else: else:
return bytearray(s).decode('utf8') return bytearray(s).decode('utf8', errors='replace')
class GUID(ctypes.Structure): class GUID(ctypes.Structure):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment