当前位置:网站首页>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()
边栏推荐
- 155. 最小栈
- 【云原生】Nacos-TaskManager 任务管理的使用
- Get to know linkerd project for the first time
- leetcode:221. 最大正方形【dp状态转移的精髓】
- Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
- 潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
- RHCSA4
- 2021.12.16-2021.12.20 empty four hand transaction records
- stm32和电机开发(从架构图到文档编写)
- Introduction to sap ui5 flexiblecolumnlayout control
猜你喜欢
Transactions from December 29, 2021 to January 4, 2022
Compilation principle reading notes (1/12)
Detailed explanation of navigation component of openharmony application development
leetcode:221. 最大正方形【dp状态转移的精髓】
【云原生】Nacos-TaskManager 任务管理的使用
Comprehensive upgrade of Taobao short video photosynthetic platform
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
SAP UI5 ObjectPageLayout 控件使用方法分享
Get to know linkerd project for the first time
Actual combat simulation │ JWT login authentication
随机推荐
I met Tencent in the morning and took out 38K, which showed me the basic smallpox
Halcon template matching actual code (I)
[cloud native] event publishing and subscription in Nacos -- observer mode
以VMware创新之道,重塑多云产品力
What is the difference between Bi software in the domestic market
Why is your next computer a computer? Explore different remote operations
SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
Simply take stock reading notes (1/8)
Compile kernel modules separately
Alipay transfer system background or API interface to avoid pitfalls
##无监控,不运维,以下是监控里常用的脚本监控
Kotlin function
Overflow toolbar control in SAP ui5 view
Simply take stock reading notes (3/8)
Notes for preparation of information system project manager --- information knowledge
SAP SEGW 事物码里的 Association 建模方式
深度长文探讨Join运算的简化和提速
How to connect the API interface of Taobao open platform (super detailed)
Halcon 模板匹配实战代码(一)
RHCSA7