UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 74: illegal multibyte sequence
时间: 2023-08-10 22:05:33 浏览: 115
回答: 当Python中出现"UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 74: illegal multibyte sequence"的报错信息时,这意味着在解码过程中遇到了无法解析的多字节序列。这个问题通常是由于编码不匹配导致的。解决这个问题的方法是在命令中加上encoding='utf-8',将编码设置为UTF-8。这样可以确保Python能够正确解码字节序列并避免出现错误。\[3\]
#### 引用[.reference_title]
- *1* [UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xae in position 199: illegal multibyte](https://blog.csdn.net/wzk4869/article/details/125634768)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Python中出现“UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xaa in position……“的解决办法](https://blog.csdn.net/luwieer/article/details/116036640)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文