May-02-2021, 06:46 AM
The character encoding could be latin-1 (iso8859-1)
>>> x = b'\xa3' >>> x.decode() Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 0: invalid start byte >>> x.decode('latin-1') '£'There may be a way to tell the library that it must use the latin-1 encoding instead of utf-8.