'utf-8' codec can't decode byte 0x8b in position 0: invalid start byte
时间: 2023-10-16 19:06:42 浏览: 171
'utf-8' codec can't decode byte 0x8b in position 0: invalid start byte 这个错误意味着在使用utf-8编码时,遇到了无法解码的字节序列。 这种情况通常发生在尝试解码非utf-8编码的数据时。常见的解决方法是尝试使用其他编码方式进行解码,例如latin-1或utf-16等。此外,还可以检查数据源是否正确提供了utf-8编码的数据。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0x8b in position”解决方案](https://blog.csdn.net/the_jack/article/details/117633533)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [ ‘utf-8‘ codec can‘t decode byte 0x8b in position 59: invalid start byte](https://blog.csdn.net/weixin_38621239/article/details/130771198)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 2: invalid continuation byte-...](https://download.csdn.net/download/weixin_42204453/15589184)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文