fix #835 , can display unicode character correctly

This commit is contained in:
Matthew Shao 2015-11-16 20:47:58 +08:00
parent 57cd9022d9
commit b7bea03c68

View File

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