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