UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 4: invalid start byte
时间: 2023-09-25 15:15:10 浏览: 161
basemap readshapefile UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 0-附件资源
这个错误是由于'utf-8'编解码器无法解码位置4处的字节0x85导致的。这意味着在你的文本中存在一个无效的起始字节,导致无法使用'utf-8'编解码器进行正确解码。这种错误通常发生在尝试用错误的编码方式对文本进行解码时。要解决这个问题,你可以尝试使用其他编码方式来解码文本,例如'gbk'编码方式。另外,你还可以检查你的文本,确保其中不包含无效的字符或特殊字符,或者使用适当的编码方式来处理这些特殊字符。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xc0 in position 0: invalid start byte报错...](https://blog.csdn.net/Deng872347348/article/details/126308403)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [遇到UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa3 in position 4: invalid start byte的...](https://blog.csdn.net/phoenix339/article/details/122958871)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文