Skip to content

Commit 1cb929f

Browse files
committed
Merge branch 'issue#57-ascii_decode' into staging
2 parents 13f5f7c + 9029e6b commit 1cb929f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/potr/proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def bytesAndStrings(cls):
5252
if hasByteStr:
5353
cls.__str__ = lambda self: self.__bytes__()
5454
else:
55-
cls.__str__ = lambda self: str(self.__bytes__(), encoding='ascii')
55+
cls.__str__ = lambda self: str(self.__bytes__(), 'utf-8', 'replace')
5656
return cls
5757

5858
def registermessage(cls):

0 commit comments

Comments
 (0)