changeset 78:a7196ca7cefd

Fixed bug in LogService with non-ascii chars.
author Ralph Meijer <ralphm@ik.nu>
date Mon, 08 Nov 2004 19:13:49 +0000
parents b8958967f508
children c40ccc30dfb7
files idavoll/idavoll.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/idavoll/idavoll.py	Mon Nov 08 19:01:20 2004 +0000
+++ b/idavoll/idavoll.py	Mon Nov 08 19:13:49 2004 +0000
@@ -116,10 +116,10 @@
         xmlstream.rawDataOutFn = self.rawDataOut
 
     def rawDataIn(self, buf):
-        print "RECV: %s" % buf.encode('ascii', 'replace')
+        print "RECV: %s" % unicode(buf, 'utf-8').encode('ascii', 'replace')
 
     def rawDataOut(self, buf):
-        print "SEND: %s" % buf.encode('ascii', 'replace')
+        print "SEND: %s" % unicode(buf, 'utf-8').encode('ascii', 'replace')
 
 def makeService(config):
     serviceCollection = service.MultiService()