Here's the patch to apply to po2html.py
--- translate-toolkit-1.1.1/translate/convert/po2html.py.old 2008-11-05 17:18:17.000000000 +0100 +++ translate-toolkit-1.1.1/translate/convert/po2html.py 2008-11-05 17:18:50.000000000 +0100 @@ -81,7 +81,7 @@ htmlresult = htmlresult.replace(msgid, msgstr, 1) htmlresult = htmlresult.encode('utf-8') if tidy: - htmlresult = str(tidy.parseString(htmlresult)) + htmlresult = str(tidy.parseString(htmlresult, **{'char_encoding': "utf8"})) return htmlresult
def converthtml(inputfile, outputfile, templatefile, wrap=None, includefuzzy=False):
Here's the patch to apply to po2html.py
--- translate- toolkit- 1.1.1/translate /convert/ po2html. py.old 2008-11-05 17:18:17.000000000 +0100 toolkit- 1.1.1/translate /convert/ po2html. py 2008-11-05 17:18:50.000000000 +0100
htmlresult = htmlresult. replace( msgid, msgstr, 1) encode( 'utf-8' ) parseString( htmlresult) ) parseString( htmlresult, **{'char_encoding': "utf8"}))
+++ translate-
@@ -81,7 +81,7 @@
htmlresult = htmlresult.
if tidy:
- htmlresult = str(tidy.
+ htmlresult = str(tidy.
return htmlresult
def converthtml( inputfile, outputfile, templatefile, wrap=None, includefuzzy= False):