html = html.encode('gbk') 还是报
'gbk' codec can't encode character u'\u2f45' in position 392: illegal multibyte sequence
html = html.encode('gbk', 'ignore') 就好了
本文共 207 字,大约阅读时间需要 1 分钟。
html = html.encode('gbk') 还是报
'gbk' codec can't encode character u'\u2f45' in position 392: illegal multibyte sequence
html = html.encode('gbk', 'ignore') 就好了
转载于:https://my.oschina.net/u/1178126/blog/736224