From 69c08fbcbaa7f06a32fac23b995d0861a1f27522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 18 Sep 2012 22:45:11 +0200 Subject: [PATCH] encode utf8 result --- moinformat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moinformat.py b/moinformat.py index 933b7ff..9935084 100755 --- a/moinformat.py +++ b/moinformat.py @@ -27,7 +27,7 @@ def moin2doku(pagename, text): parser.format(formatter) sys.stdout = stdout - return output.getvalue() + return unicode(output.getvalue().decode('utf-8')) request = RequestCLI() formatter = Formatter(request)