We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13f5f7c + 9029e6b commit 1cb929fCopy full SHA for 1cb929f
src/potr/proto.py
@@ -52,7 +52,7 @@ def bytesAndStrings(cls):
52
if hasByteStr:
53
cls.__str__ = lambda self: self.__bytes__()
54
else:
55
- cls.__str__ = lambda self: str(self.__bytes__(), encoding='ascii')
+ cls.__str__ = lambda self: str(self.__bytes__(), 'utf-8', 'replace')
56
return cls
57
58
def registermessage(cls):
0 commit comments