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

边栏推荐
猜你喜欢

A deep long article on the simplification and acceleration of join operation

滴滴开源DELTA:AI开发者可轻松训练自然语言模型

MySQL 巨坑:update 更新慎用影响行数做判断!!!

【云原生】Nacos-TaskManager 任务管理的使用

How can non-technical departments participate in Devops?

DNS的原理介绍

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

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

ABAP editor in SAP segw transaction code

Tips and tricks of image segmentation summarized from 39 Kabul competitions
随机推荐
Super efficient! The secret of swagger Yapi
Wechat enterprise payment to change access, open quickly
leetcode:221. 最大正方形【dp状态转移的精髓】
谈谈我写作生涯的画图技巧
【Nacos云原生】阅读源码第一步,本地启动Nacos
Tips and tricks of image segmentation summarized from 39 Kabul competitions
超高效!Swagger-Yapi的秘密
开发者,云原生数据库是未来吗?
Kotlin function
About the single step debugging of whether SAP ui5 floating footer is displayed or not and the benefits of using SAP ui5
Notes for preparation of information system project manager --- information knowledge
Simply take stock reading notes (4/8)
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
Get to know linkerd project for the first time
以VMware创新之道,重塑多云产品力
SAP UI5 视图里的 OverflowToolbar 控件
I met Tencent in the morning and took out 38K, which showed me the basic smallpox
阿里云SLB负载均衡产品基本概念与购买流程
实战模拟│JWT 登录认证
Detailed explanation of navigation component of openharmony application development