当前位置:网站首页>Solve Unicode decodeerror: 'GBK' codec can't decode byte 0xa2 in position 107
Solve Unicode decodeerror: 'GBK' codec can't decode byte 0xa2 in position 107
2022-07-05 13:01:00 【South Lake Fishing Song】
Report errors :
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa2 in position 107: illegal multibyte sequence
with open('./test.html') as fin:
html_doc = fin.read()

solve :
with open('./test.html',encoding='utf-8') as fin:
html_doc = fin.read()

边栏推荐
- ABAP editor in SAP segw transaction code
- Research: data security tools cannot resist blackmail software in 60% of cases
- CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
- Insmod prompt invalid module format
- stm32和电机开发(从架构图到文档编写)
- Lepton 无损压缩原理及性能分析
- Simply take stock reading notes (3/8)
- Rocky基础知识1
- Alibaba cloud SLB load balancing product basic concept and purchase process
- 简单上手的页面请求和解析案例
猜你喜欢
随机推荐
Four common problems of e-commerce sellers' refund and cash return, with solutions
Taobao product details API | get baby SKU, main map, evaluation and other API interfaces
将函数放在模块中
Install rhel8.2 virtual machine
你的下一台电脑何必是电脑,探索不一样的远程操作
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
Rasa Chat Robot Tutorial (translation) (1)
Rocky basics 1
Didi open source Delta: AI developers can easily train natural language models
2021-12-21 transaction record
It's too convenient. You can complete the code release and approval by nailing it!
155. Minimum stack
#yyds干货盘点# 解决名企真题:搬圆桌
Laravel document reading notes -mews/captcha use (verification code function)
SAP UI5 ObjectPageLayout 控件使用方法分享
RHCSA4
Taobao short videos are automatically released in batches without manual RPA open source
Introduction aux contrôles de la page dynamique SAP ui5
SAP self-development records user login logs and other information
Leetcode20. Valid parentheses









