- UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 157: illegal multibyte sequence永久解决方法
- 打开PyQuery文件导入 import chardet 模块将217行代码改为
-
1 if 'filename' in kwargs: 2 txt = open('./test_01.html', 'rb').read()#./test_01.html运行文件 3 encoding = chardet.detect(txt)['encoding'] 4 html = open(kwargs['filename'],encoding=encoding)