X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/1ea743b5b5e0be50548a6fc5f12ae8b52180e247..f3eaf59b7f33ce2ab39f853834460e92d2e1ca76:/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: