webcrawler icon indicating copy to clipboard operation
webcrawler copied to clipboard

为什么会存在解码问题?

Open xshkdjsh opened this issue 7 years ago • 1 comments

Traceback (most recent call last): File "F:/PY/20171006webdriber.py", line 88, in main() File "F:/PY/20171006webdriber.py", line 52, in main girls.write(result_bf) UnicodeEncodeError: 'gbk' codec can't encode character '\u2207' in position 86907: illegal multibyte sequence

xshkdjsh avatar Oct 06 '17 02:10 xshkdjsh

加上编码方式参数,with open("./output/rawfile/noscript_meta.txt", 'w',encoding='utf-8') as noscript_meta

fff2zrx avatar Aug 12 '19 15:08 fff2zrx