# HG changeset patch # User Ralph Meijer # Date 1099941229 0 # Node ID a7196ca7cefd9e5dd62e22cdf3226c08b5fd8b45 # Parent b8958967f508aa9af898ef6cb9b1ece278a63a5b Fixed bug in LogService with non-ascii chars. diff -r b8958967f508 -r a7196ca7cefd idavoll/idavoll.py --- 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()