From 0a4b5b247b3a7f8d46cbd38dfbbfaa38b860ca6d Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 22 Jun 2008 02:07:34 -0300 Subject: [PATCH] Convert serializer data to unicode in PyminDaemon (closes #28). --- pymin/pymindaemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymin/pymindaemon.py b/pymin/pymindaemon.py index 6f4fa73..6e080cb 100644 --- a/pymin/pymindaemon.py +++ b/pymin/pymindaemon.py @@ -114,13 +114,13 @@ class PyminDaemon(eventloop.EventLoop): try: result = self.dispatcher.dispatch(unicode(msg, 'utf-8')) if result is not None: - result = serializer.serialize(result) + result = unicode(serializer.serialize(result), 'utf-8') response = u'OK' except dispatcher.Error, e: result = unicode(e) + u'\n' except formencode.Invalid, e: if e.error_dict: - result = serializer.serialize(e.error_dict) + result = unicode(serializer.serialize(e.error_dict), 'utf-8') else: result = unicode(e) + u'\n' except Exception, e: -- 2.43.0