当前位置:网站首页>UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte
2022-07-27 19:57:00 【Roaming vegetable chicken】
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte
Error code :df=pd.read_csv("./ttt.txt",sep=",",encoding=“utf-8”)
The solution is to convert the document code to utf8, Here are two solutions !
Solution one ( Failure ):
Solution two ( success ):
use Notepad++ open , Then turn to utf-8 code , This transformation is successful .
Reference resources :https://blog.csdn.net/datadev_sh/article/details/83541811
边栏推荐
- Oracle 日期的转换
- Hyperledger caliper is built on fabric for performance test
- 注入攻击
- Container summary
- 成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
- Detailed interpretation of IEC104 protocol (II) interaction process and protocol analysis
- sqlite创建表联合主键的sql写法
- Qt的QTextToSpeech类实现语音播报功能
- mysql函数汇总之系统信息函数
- 10.31 extended configuration of static route
猜你喜欢

Fileoutputstream (file storage) and FileInputStream (file reading)

Marqueetextview (running lantern)
![[basic knowledge of deep learning - 42] detailed explanation of logistic regression](/img/74/d7d1562ada4671864961721b9a1baf.png)
[basic knowledge of deep learning - 42] detailed explanation of logistic regression

探索新一代活动获客方式,虚拟化活动棋胜一招 | 厂商征集

Oracle +JDBC

Fabric上搭建Hyperledger caliper进行性能测试

vlan试验2021.1.14
![In a real case, college students were cheated when taking orders. I hope you won't be cheated [painful lesson]](/img/7d/142e69d6da1899cefbcc99d7929fba.png)
In a real case, college students were cheated when taking orders. I hope you won't be cheated [painful lesson]

第3章 基本操作

RadioGroup(单选框)
随机推荐
文件操作防护
真实案例,大学生接单被骗,希望大家不要被骗了【惨痛教训】
Fabric上搭建Hyperledger caliper进行性能测试
VS2017#include 'xxx.h'
NAT 11.16
ContextMenu (context menu)
An unknown fastcgi error occurred in IIS: 0x80070005
链表~~~
Gesturedetector (gesture recognition)
GridView (implement table display icon)
VLAN test 2021.1.14
Detailed interpretation of IEC104 protocol (II) interaction process and protocol analysis
Flink introduction and operation architecture
Summenudemo (submenu)
容器总结
能上QQ但网页打不开
transformers-bert
静态试验。2021.01 .13
10.31 extended configuration of static route
深度主动学习综述2020