UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 29: invalid start byte
时间: 2023-10-25 19:09:24 浏览: 161
This error indicates that there is a problem with the encoding of the text that you are trying to decode. Specifically, it means that the 'utf-8' codec is unable to decode a byte that it has encountered in the text.
The byte in question is 0x8c, which is not a valid starting byte in the utf-8 encoding. This could be caused by several reasons, such as:
- The text is not actually encoded in utf-8, but in a different encoding that uses the byte 0x8c as a valid starting byte.
- The text is corrupted or incomplete, which has caused the byte 0x8c to be inserted in an incorrect position.
- The text contains non-textual data (such as binary data) that is not meant to be decoded as text.
To resolve this error, you may need to investigate the source of the text and determine the correct encoding that it is using. You may also need to clean up the text or remove any non-textual data that is causing the error.