当前位置:网站首页>What should I do if excel opens a CSV file containing Chinese characters and there is garbled code?
What should I do if excel opens a CSV file containing Chinese characters and there is garbled code?
2022-07-29 02:23:00 【surfirst】
I started from PostgreSQL The data is exported as CSV file , from Excel Directly open the result, and all Chinese characters are displayed as garbled , According to the Internet, from Excel Save as CSV UTF8 Format , Open again or display as garbled , Use Notepad Save as UTF 8 code , Again from Excel It's still garbled when you open it .
Solution
Open an empty one Excel, And then choose Data -> From Text/CSV, As shown in the figure below :

choice CSV file . Note that at this time, Chinese characters may still be displayed as garbled . Something like this :

At this time, what we need to do is to change the code in the upper left corner . The default code in the above example is Western European Windows. Let's change it to 65001:Unicode (UTF-8) That's all right. .

After that , The Chinese characters in the document can be displayed correctly .
Conclusion
We can use Excel Of data (Data) -> From Text/CSV Menu import CSV, Then change the code to UTF-8 solve CSV Chinese characters are displayed as garbled .
边栏推荐
- 全志T3/A40i工业核心板,4核[email protected],国产化率达100%
- DevOps 团队如何抵御 API 攻击?
- 基于对象的实时空间音频渲染丨Dev for Dev 专栏
- 基于C51实现数码管的显示
- MySQL驱动中关于时间的坑
- 当我看源码的时候,我在想什么?
- How to guarantee password security? How does the secure browser manage passwords?
- Internet of things development -- mqtt message server emqx
- ES6 syntax extension
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 2, sign in question GJK
猜你喜欢

Responsive dream weaving template outdoor camping website

网络安全漏洞管理的探索与实践

WebView attack

Motionlayout -- realize animation in visual editor

开启TLS加密的Proftpd安全FTP服务器安装指南

“蔚来杯“2022牛客暑期多校训练营2,签到题GJK

Realization of digital tube display based on C51

STM32 DMA receives serial port data

即时通讯场景下安全合规的实践和经验

当Synchronized遇到这玩意儿,有个大坑,要注意
随机推荐
ES6 syntax extension
Feynman learning method (symbol table)
Thermistor temperature calculation formula program
基于对象的实时空间音频渲染丨Dev for Dev 专栏
TI C6000 TMS320C6678 DSP+ Zynq-7045的PS + PL异构多核案例开发手册(2)
响应式织梦模板酒店客房类网站
What is scope and scope chain
ES6 语法扩展
RGBD点云降采样
防止重复点击
Interprocess communication - detailed explanation of the pipeline (explanation of graphic cases)
Hexadecimal to string
Even PostgreSQL problem: expected authentication request from server, but received V
Three methods of STM32 delay function
如何利用 RPA 实现自动化获客?
Responsive dream weaving template makeup website
DevOps 团队如何抵御 API 攻击?
字符流综合练习解题过程
Click the button to slide to the specified position
Excel 打开包含汉字的 csv 文件出现乱码该怎么办?