--- a/DebugClients/Python/AsyncFile.py Sat Feb 23 14:25:36 2013 +0100 +++ b/DebugClients/Python/AsyncFile.py Tue Feb 26 19:33:22 2013 +0100 @@ -48,6 +48,7 @@ self.mode = mode self.name = name self.nWriteErrors = 0 + self.encoding = "utf-8" self.wpending = u'' @@ -73,7 +74,7 @@ try: buf = "%s%s" % (self.wpending[:n], EOT) try: - buf = buf.encode('utf8') + buf = buf.encode('utf-8') except (UnicodeEncodeError, UnicodeDecodeError): pass self.sock.sendall(buf)