当前位置:网站首页>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()

边栏推荐
- Install rhel8.2 virtual machine
- Research: data security tools cannot resist blackmail software in 60% of cases
- 使用 jMeter 对 SAP Spartacus 进行并发性能测试
- Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
- SAP self-development records user login logs and other information
- Detailed explanation of navigation component of openharmony application development
- Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
- HiEngine:可媲美本地的云原生内存数据库引擎
- CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
- Hiengine: comparable to the local cloud native memory database engine
猜你喜欢

Detailed explanation of navigation component of openharmony application development

《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动

实战模拟│JWT 登录认证

Pinduoduo flag insertion remarks API

stirring! 2022 open atom global open source summit registration is hot!

Overflow toolbar control in SAP ui5 view

stm32和电机开发(从架构图到文档编写)

RHCSA5
![[Nacos cloud native] the first step of reading the source code is to start Nacos locally](/img/f8/d9b848593cf7380a6c99ee0a8158f8.png)
[Nacos cloud native] the first step of reading the source code is to start Nacos locally

Compilation principle reading notes (1/12)
随机推荐
自然语言处理从小白到精通(四):用机器学习做中文邮件内容分类
I'm doing open source in Didi
NFT: how to make money with unique assets?
Transactions on December 23, 2021
Developers, is cloud native database the future?
Association modeling method in SAP segw transaction code
Simply take stock reading notes (3/8)
使用 jMeter 对 SAP Spartacus 进行并发性能测试
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
Laravel document reading notes -mews/captcha use (verification code function)
SAP self-development records user login logs and other information
研究:数据安全工具在 60% 的情况下无法抵御勒索软件
#yyds干货盘点# 解决名企真题:搬圆桌
10 minute fitness method reading notes (2/5)
CVPR 2022 | single step 3D target recognizer based on sparse transformer
石臻臻的2021总结和2022展望 | 文末彩蛋
Alipay transfer system background or API interface to avoid pitfalls
Transactions from December 27 to 28, 2021
Annotation problem and hidden Markov model
2021.12.16-2021.12.20 empty four hand transaction records