当前位置:网站首页>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()
边栏推荐
- Introduction to the principle of DNS
- CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
- Laravel document reading notes -mews/captcha use (verification code function)
- How can non-technical departments participate in Devops?
- The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
- 函数的默认参数&函数参数的多种方法
- RHCSA5
- 【Nacos云原生】阅读源码第一步,本地启动Nacos
- SAP UI5 视图里的 OverflowToolbar 控件
- 函数传递参数小案例
猜你喜欢
[cloud native] use of Nacos taskmanager task management
RHCAS6
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
Transactions from December 27 to 28, 2021
【Nacos云原生】阅读源码第一步,本地启动Nacos
ABAP editor in SAP segw transaction code
Get to know linkerd project for the first time
[Nacos cloud native] the first step of reading the source code is to start Nacos locally
初识Linkerd项目
SAP UI5 DynamicPage 控件介紹
随机推荐
Tips and tricks of image segmentation summarized from 39 Kabul competitions
Free testing of Taobao tmall API order and flag insertion remark interface
10 minute fitness method reading notes (2/5)
155. 最小栈
stm32和电机开发(从架构图到文档编写)
Natural language processing series (I) introduction overview
【Nacos云原生】阅读源码第一步,本地启动Nacos
实现 1~number 之间,所有数字的加和
Pinduoduo flag insertion remarks API
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
Actual combat simulation │ JWT login authentication
I'm doing open source in Didi
Distance measuring sensor chip 4530a used in home intelligent lighting
RHCAS6
Wechat enterprise payment to change access, open quickly
SAP UI5 FlexibleColumnLayout 控件介绍
Get to know linkerd project for the first time
mysql拆分字符串做条件查询
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
Transactions from January 14 to 19, 2022