From b7bea03c68d7342958528c997121ecbb9674058c Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Mon, 16 Nov 2015 20:47:58 +0800 Subject: [PATCH] fix #835 , can display unicode character correctly --- libmproxy/contentviews.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmproxy/contentviews.py b/libmproxy/contentviews.py index 2f46cccaf..b24595637 100644 --- a/libmproxy/contentviews.py +++ b/libmproxy/contentviews.py @@ -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)