diff options
author | Matthew Shao <me@matshao.com> | 2015-11-16 20:47:58 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2015-11-16 20:47:58 +0800 |
commit | b7bea03c68d7342958528c997121ecbb9674058c (patch) | |
tree | 0d007ba3a96c32b0581f2cf6a28de2aec8b36ac0 /libmproxy | |
parent | 57cd9022d9253c7873ff3bd1d7943296bdf90268 (diff) | |
download | mitmproxy-b7bea03c68d7342958528c997121ecbb9674058c.tar.gz mitmproxy-b7bea03c68d7342958528c997121ecbb9674058c.tar.bz2 mitmproxy-b7bea03c68d7342958528c997121ecbb9674058c.zip |
fix #835 , can display unicode character correctly
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/contentviews.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/contentviews.py b/libmproxy/contentviews.py index 2f46ccca..b2459563 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) |