Merge pull request #836 from MatthewShao/fix#835

Fix #835 , can display unicode character correctly
This commit is contained in:
Maximilian Hils 2015-11-18 13:57:33 +01:00
commit 40b1819293

View File

@ -228,7 +228,8 @@ class ViewHTML(View):
s = lxml.etree.tostring(
d,
pretty_print=True,
doctype=docinfo.doctype
doctype=docinfo.doctype,
encoding='utf8'
)
return "HTML", format_text(s)