fix issue with utf8 encoding in logger stdout

This commit is contained in:
Shane Jonas 2014-04-10 16:47:26 -07:00
commit d9782b2dd1
3 changed files with 3 additions and 3 deletions

View file

@ -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