当前位置:网站首页>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 .
边栏推荐
- Analysis of new retail o2o e-commerce model
- MySQL第三篇
- Value transmission and address transmission of C language, pointer of pointer
- JS cookie usage
- Pointer of pointer???...
- Extended operator of new features in ES6
- 安装ros的laser_scan_matche库所遇到的问题(一)
- Big manufacturers finally can't stand "adding one second", and companies such as Microsoft, Google meta propose to abolish leap seconds
- 1985-2020(8个版次)全球地表覆盖下载与介绍
- Nacos registry
猜你喜欢

SQL窗口函数

【深度学习CPU(番外篇)——虚拟内存】

Lua language (stm32+2g/4g module) and C language (stm32+esp8266) methods of extracting relevant data from strings - collation

华为天才少年稚晖君做了一把模块化机械键盘,引起极客圈地震,网友:这才是真正的客制化...

Lvs+keepalived high availability deployment practical application

Interview essential! TCP classic 15 consecutive questions!

Since 2019, you must have stopped using this marketing strategy

UCOS task switching process

Alibaba Font Icon Library Usage and update methods

Is the array name a pointer
随机推荐
When array is used as a function parameter, it is better to use the array size as a function parameter
安装ros的laser_scan_matche库所遇到的问题(一)
大佬们flink的JDBC SQL Connector现在不支持所有的数据库吗,例如vertica?
Lua语言(stm32+2G/4G模块)和C语言(stm32+esp8266)从字符串中提取相关数据的方法-整理
SQL window function
通过PWM呼吸灯和PWM控制直流电机来详细介绍TIM的输出比较功能
Analysis of new retail o2o e-commerce model
The const keyword of ES6 declares variables
Solve the problem of garbled code when opening the project code in idea
%s. %c, character constant, string constant, const char*, pointer array, string array summary
String template of ES6 new features and methods to simplify objects and functions
SQL窗口函数
Deconstruction assignment of new features of ES6
1985-2020 (8 Editions) global surface coverage download and introduction
Deep understanding of browser caching mechanism (HTTP)
请问为什么我进行mysql数据update时,kafka中采集到的是先删除原纪录(op d)再新增新
Note: restframe work records many to one tables, how to serialize in that table (reverse query)
从2019 年开始,你一定停止使用了这个营销策略…
The digitalization of the consumer industry is upgraded to "rigid demand", and weiit's new retail SaaS empowers enterprises!
Since 2019, you must have stopped using this marketing strategy