'gbk' codec can't decode byte 0x90 in position 22: illegal multibyte sequence
时间: 2023-10-30 18:30:26 浏览: 52
This error message usually occurs when a program tries to decode a string using the 'gbk' codec (which is a character encoding used for simplified Chinese) and encounters a byte that is not valid in the encoding. In this case, the byte at position 22 is 0x90, which is not a valid byte in the 'gbk' encoding.
To fix this error, you may need to change the encoding used to decode the string or remove the invalid byte from the string. Alternatively, you could try using a different codec or character encoding that can handle the specific byte sequence you're working with. Depending on the context, you may also need to check that the input data is correctly formatted and does not contain any unexpected characters or byte sequences.
阅读全文