当前位置:网站首页>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()
边栏推荐
- 超高效!Swagger-Yapi的秘密
- 自然语言处理系列(一)入门概述
- [cloud native] event publishing and subscription in Nacos -- observer mode
- Halcon 模板匹配实战代码(一)
- 10 minute fitness method reading notes (1/5)
- Principle and performance analysis of lepton lossless compression
- Le rapport de recherche sur l'analyse matricielle de la Force des fournisseurs de RPA dans le secteur bancaire chinois en 2022 a été officiellement lancé.
- Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
- Natural language processing from Xiaobai to proficient (4): using machine learning to classify Chinese email content
- 10 minute fitness method reading notes (2/5)
猜你喜欢
深度长文探讨Join运算的简化和提速
2021-12-21 transaction record
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
Taobao short video, why the worse the effect
Introduction to sap ui5 flexiblecolumnlayout control
函数传递参数小案例
SAP SEGW 事物码里的 Association 建模方式
A specific example of ABAP type and EDM type mapping in SAP segw transaction code
自然语言处理系列(一)入门概述
Transactions on December 23, 2021
随机推荐
逆波兰表达式
非技术部门,如何参与 DevOps?
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
Transactions from January 6 to October 2022
Alipay transfer system background or API interface to avoid pitfalls
#yyds干货盘点#js截取文件后缀名
Difference between JUnit theories and parameterized tests
Taobao short videos are automatically released in batches without manual RPA open source
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
Taobao short video, why the worse the effect
stirring! 2022 open atom global open source summit registration is hot!
你的下一台电脑何必是电脑,探索不一样的远程操作
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
实战模拟│JWT 登录认证
leetcode:221. 最大正方形【dp状态转移的精髓】
Concurrent performance test of SAP Spartacus with JMeter
SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
Alibaba cloud SLB load balancing product basic concept and purchase process
Vonedao solves the problem of organizational development effectiveness
Annotation problem and hidden Markov model