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