我mitmproxy
用来操作网页的返回 HTML 代码。当我对该 HTML 代码使用命令时,我得到了UnicodeDecodeError
.
我尝试做任何事情,并在这里阅读任何帖子,但仍然没有任何效果。
我已经尝试过的许多事情的两个例子:
msg.response.content = unicode(msg.response.content, errors='ignore'))
msg.response.content = msg.response.content.decode('utf8').encode('ascii', errors='ignore'))
我该如何处理?