当前位置:网站首页>解决 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa2 in position 107
解决 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa2 in position 107
2022-07-05 12:40:00 【南湖渔歌】
报错:
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa2 in position 107: illegal multibyte sequence
with open('./test.html') as fin:
html_doc = fin.read()
解决:
with open('./test.html',encoding='utf-8') as fin:
html_doc = fin.read()
边栏推荐
- Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
- OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首
- View and modify the MySQL data storage directory under centos7
- 关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
- 【云原生】Nacos-TaskManager 任务管理的使用
- Install rhel8.2 virtual machine
- Taobao short video, why the worse the effect
- 跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
- SAP self-development records user login logs and other information
- Comprehensive upgrade of Taobao short video photosynthetic platform
猜你喜欢
CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器
Storage Basics
What is the difference between Bi software in the domestic market
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
Lepton 无损压缩原理及性能分析
Install rhel8.2 virtual machine
Alipay transfer system background or API interface to avoid pitfalls
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
太方便了,钉钉上就可完成代码发布审批啦!
Distance measuring sensor chip 4530a used in home intelligent lighting
随机推荐
Language model
Transactions from January 14 to 19, 2022
以VMware创新之道,重塑多云产品力
Vonedao solves the problem of organizational development effectiveness
Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
Sqoop import and export operation
RHCSA1
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
Kotlin function
SAP SEGW 事物码里的 Association 建模方式
《信息系统项目管理师》备考笔记---信息化知识
RHCAS6
insmod 提示 Invalid module format
非技术部门,如何参与 DevOps?
深度长文探讨Join运算的简化和提速
DNS的原理介绍
SAP 自开发记录用户登录日志等信息
[cloud native] event publishing and subscription in Nacos -- observer mode
Pytoch implements tf Functions of the gather() function
Taobao product details API | get baby SKU, main map, evaluation and other API interfaces