UnicodeDecodeError: 'gb2312' codec can't decode byte 0x87 in position 10: illegal multibyte sequence
时间: 2023-09-26 16:10:44 浏览: 130
UnicodeDecodeError: 'gb2312' codec can't decode byte 0x87 in position 10: illegal multibyte sequence 这个错误通常是因为使用的编码格式不匹配或者包含了非法的多字节序列。在这个错误中,使用的是gb2312编码,但是在第10个位置出现了0x87这个非法的多字节序列。解决这个问题的方法是使用兼容gb2312编码但包含更多字符的编码,比如gb18030来进行解码。这样可以避免出现非法多字节序列的情况。 你可以尝试使用gb18030编码来解码,看是否能成功解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [【python问题解决】UnicodeDecodeError :'gb2312' codec can't decode bytes:illegal multibyte sequence](https://blog.csdn.net/Junkichan/article/details/51913845)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [decode解码报错UnicodeDecodeError: 'gb2312' codec can't decode byte 0x8f in position 6018: illegal ...](https://blog.csdn.net/k53247l2/article/details/79340900)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文