UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 3867: illegal multibyte sequence
时间: 2023-10-29 16:34:53 浏览: 53
invalid multibyte character sequence 870告警1
This error occurs when trying to decode a string of text using the GBK codec, but encountering a byte sequence that is not valid in the GBK character set. The byte sequence in question is 0xae, which is not a valid character in GBK.
To resolve this error, you can try using a different codec to decode the text, such as UTF-8 or ISO-8859-1. Alternatively, you may need to investigate why the text being decoded contains an illegal byte sequence, and modify the source data or encoding accordingly.
阅读全文