当前位置:网站首页>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 .
边栏推荐
猜你喜欢
如何利用 RPA 实现自动化获客?
What is scope and scope chain
DevOps 团队如何抵御 API 攻击?
webview攻击
Interprocess communication - detailed explanation of the pipeline (explanation of graphic cases)
响应式织梦模板家装装饰类网站
网络安全漏洞管理的探索与实践
Responsive dream weaving template hotel room website
Prometheus + alertmanager message alert
Data security and privacy computing summit - development and application of security intersection in privacy Computing: Learning
随机推荐
发布融资需求1.29亿元,大科城项目路演持续浇灌科创“好苗子”
JetPack--Navigation实现页面跳转
Excel 用countif 统计
webview攻击
STM32 DMA receives serial port data
MySQL驱动中关于时间的坑
指针——黄金阶段
Form verification hidden input box is displayed before verification
基于C51实现数码管的显示
Realization of digital tube display based on C51
【RT学习笔记1】RT-Thread外设例程——控制Led灯闪烁
Excel 打开包含汉字的 csv 文件出现乱码该怎么办?
[cloud native and 5g] micro services support 5g core network
Related function records about string processing (long-term update)
记一次 ERROR scheduler.AsyncEventQueue: Dropping event from queue shared导致OOM
即时通讯场景下安全合规的实践和经验
高效使用浏览器的5个小技巧,第1个技巧最实用
Responsive dream weaving template home decoration website
Responsive Zhimeng template decoration design website
C language improvement (I)