当前位置:网站首页>UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)
2022-07-29 04:03:00 【Boiled water】
Screenshot of the problem

analysis
The file to be decoded contains ascii Characters outside the character set , Therefore, it cannot be parsed correctly
solve
increase encoding attribute , And find an encoding set that contains all the characters of the file ,
I have tried many times , Found out latin1 This treasure character set 555555
training_data, validation_data, test_data = pickle.load(f, encoding='latin1')latin1 Introduce
Alias ISO-8859-1, Single byte encoding , Backwards compatible ASCII, Its coding range is 0x00-0xFF,0x00-0x7F Perfect sum between ASCII Agreement ,0x80-0x9F Between is the control character ,0xA0-0xFF Between is the text symbol .
边栏推荐
- Some notes on uniapp
- There is a special cryptology language called asn.1
- Shopify卖家:EDM营销就要搭配SaleSmartly,轻松搞定转化率
- %s. %c, character constant, string constant, const char*, pointer array, string array summary
- Analysis of new retail o2o e-commerce model
- Malloc C language
- Solve the delay in opening the console of Google browser
- [untitled]
- JS realizes the function of one click Copy
- First knowledge of C language (3)
猜你喜欢

Three tier architecture of enterprise network

Deep understanding of browser caching mechanism (HTTP)

小马智行进军前装量产,从自研域控制器入手?
![[deep learning CPU (part outside) - virtual memory]](/img/f7/4c72d583456f6f68c52424602ff5d9.png)
[deep learning CPU (part outside) - virtual memory]

Since 2019, you must have stopped using this marketing strategy

Beijing post network research 2015 problem2

伏英娜:元宇宙就是新一代互联网!

Lua语言(stm32+2G/4G模块)和C语言(stm32+esp8266)从字符串中提取相关数据的方法-整理

Meeting notice of OA project (Query & whether to attend the meeting & feedback details)

数据挖掘——关联分析例题代码实现(下)
随机推荐
SQL window function
Pointer constant and constant pointer
The function parameters of the new features of ES6 are assigned initial values and rest parameters
Solve the delay in opening the console of Google browser
[redis series] string data structure
Analysis of new retail o2o e-commerce model
BGP的基础配置---建立对等体、路由宣告
Const read only variable constant
Function pointer and callback function
CUB_ Visualization of key points in 200 bird dataset
这个报错是什么鬼啊,不影响执行结果,但是在执行sql时一直报错。。。连接maxComputer是使用
EMD 经验模态分解
一文学透MySQL表的创建和约束
Zhihuijun, a genius of Huawei, made a modular mechanical keyboard, which caused an earthquake in the geek circle. Netizens: This is the real customization
MySQL第三篇
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
flink-sql 如何设置 sql执行超时时间
Opensql quick learning
Some notes on uniapp
How to understand clock cycle and formula CPU execution time = number of CPU clock cycles / dominant frequency