UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 74: illegal multibyte sequence
时间: 2023-10-22 14:28:34 浏览: 170
UnicodeDecodeError: 'gbk'编解码器无法解码字节0xaf,位置在74: 非法的多字节序列。这个错误通常发生在使用gbk编码的文本文件中,当尝试解码包含非法多字节序列的字节时。可能的原因是文件中包含了不兼容的字符或编码错误。解决这个问题的方法是使用正确的编码方式打开文件,或者使用适当的编码器解码字节。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [关于UnicodeDecodeError: 'gbk' codec can't decode byte的解决办法](https://blog.csdn.net/qq_29592829/article/details/71598664)[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: 33.333333333333336%"]
- *2* [pyquery报错:UnicodeDecodeError: ‘gbk’ codec can’t decode byte](https://download.csdn.net/download/weixin_38665944/13751270)[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: 33.333333333333336%"]
- *3* [关于UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte的解决办法](https://blog.csdn.net/ProgramNovice/article/details/126712944)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文