'gbk' codec can't decode byte 0xae in position 77: illegal multibyte sequence
时间: 2023-10-30 21:32:41 浏览: 49
详解Python中的编码问题(encoding与decode、str与bytes)
5星 · 资源好评率100%
This error occurs when a string is attempted to be decoded using the 'gbk' codec, but the byte sequence being decoded contains an illegal multibyte sequence. This can happen if the string being decoded contains characters that are not supported by the 'gbk' codec.
To resolve this error, you can try decoding the string using a different codec that supports the characters in the string. You can also try working with the source of the string to ensure that it only contains characters that are supported by the 'gbk' codec.
阅读全文