When I attempting to use a file with PyQuery, the code raised
UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 755: illegal multibyte sequence
So I changed file pyquery.py 216 line code to html = open(kwargs['filename'], encoding='utf-8')and the code runs well.
When I attempting to use a file with PyQuery, the code raised
UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 755: illegal multibyte sequence
So I changed file
pyquery.py
216 line code tohtml = open(kwargs['filename'], encoding='utf-8')
and the code runs well.Is that solution is wrong?