DebugClients/Python/AsyncFile.py

branch
5_3_x
changeset 2435
6b155392518d
parent 2302
f29e9405c851
child 2953
703452a2876f
child 3163
9f50365a0870
--- 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)

eric ide

mercurial