fix issue with utf8 encoding in logger stdout
This commit is contained in:
parent
530afba5cb
commit
d9782b2dd1
3 changed files with 3 additions and 3 deletions
|
|
@ -81,7 +81,7 @@ class SocketClient:
|
|||
chunk = socket.recv(4096)
|
||||
|
||||
if chunk:
|
||||
stream.write(chunk.encode(stream.encoding or 'utf8'))
|
||||
stream.write(chunk.encode(stream.encoding or 'utf-8'))
|
||||
stream.flush()
|
||||
else:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue