当前位置:网站首页>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 .
边栏推荐
- 基于C51控制蜂鸣器
- JVM memory overflow online analysis dump file and online analysis open.Hprof file to get JVM operation report how jvisualvm online analysis
- ES6 语法扩展
- 数据安全与隐私计算峰会-安全求交集在隐私计算中的发展和应用:学习
- QT learning notes -37.qregex and regular expressions
- Ignore wechat font settings
- MySQL驱动中关于时间的坑
- 向量相似度评估方法
- 关于高并发,我想聊一聊。
- 【质量】代码质量评价标准
猜你喜欢

Custom MVC principle and framework implementation

"Wei Lai Cup" 2022 Niuke summer multi school training camp 2, sign in question GJK

Responsive dream weaving template hotel room website

The problem of modifying the coordinate system of point cloud image loaded by ndtmatching function in autoware

【ONE·Data || 链式二叉树】

开启TLS加密的Proftpd安全FTP服务器安装指南
![[RT learning note 1] RT thread peripheral routine - control LED light flashing](/img/70/2c8cebd98948b5c92625c1a5423d97.png)
[RT learning note 1] RT thread peripheral routine - control LED light flashing

应用系统中的报表开发成本值多少?

响应式织梦模板酒店客房类网站

Rgbd point cloud down sampling
随机推荐
我被这个浏览了 746000 次的问题惊住了
awvs无法启动问题
Responsive dream weaving template hotel room website
Prevent repeated clicks
Day 14: continued day 13 label related knowledge
Practice and experience of security compliance in instant messaging scenarios
年中总结 | 与自己对话,活在当下,每走一步都算数
Responsive dream weaving template home decoration website
【质量】代码质量评价标准
"Activity recommendation" rush rush! 2022 international open source Festival has new content
2022.7.27-----leetcode.592
【上传图片可剪裁-1】
Idea connection database
第3章业务功能开发(线索备注的删除和修改)
webview攻击
响应式织梦模板酒店客房类网站
Kubesphere-多节点安装
Leetcode 242. valid anagram
密码安全如何保障?安全浏览器如何管理密码?
QT source code analysis -- QObject (4)