X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/29b0de72b159429d20ad7b6ecb3a88f940d455ea..f3eaf59b7f33ce2ab39f853834460e92d2e1ca76:/pymin/pymindaemon.py?ds=inline 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: