当前位置:网站首页>Excel 打开包含汉字的 csv 文件出现乱码该怎么办?
Excel 打开包含汉字的 csv 文件出现乱码该怎么办?
2022-07-29 01:35:00 【surfirst】
我从 PostgreSQL 的某个表里把数据导出为 CSV 文件,从 Excel 里直接打开结果汉字全显示为乱码,按照网上的说法从 Excel 中另存为 CSV UTF8 格式,再次打开还是显示为乱码,使用 Notepad 另存为 UTF 8 编码,再从 Excel 里打开也还是乱码。
解决方案
打开一个空的 Excel,然后选择 Data -> From Text/CSV,如下图所示:

选择 CSV 文件。注意这个时候还是可能会把汉字显示为乱码。类似于这样:

这时候我们需要做的是改变左上角的编码。在上例中的默认编码是 Western European Windows。我们把它改为 65001:Unicode (UTF-8)就可以了。

改完以后,文件中的汉字就可以被正确显示了。
结论
我们可以使用 Excel 的 数据 (Data) -> From Text/CSV 菜单导入 CSV,然后把编码改为 UTF-8 解决 CSV 中汉字显示为乱码的问题。
边栏推荐
- druid. io kill -9 index_ Realtime traceability task
- MotionLayout--在可视化编辑器中实现动画
- What is a proxy server? [2022 guide]
- druid. IO custom real-time task scheduling policy
- 自定义mvc原理和框架实现
- Mathematical modeling - location of police stations
- Control buzzer based on C51
- mobile-picker.js
- iVX低代码平台系列详解 -- 概述篇(二)
- 控制输入框弹出弹窗 和不弹出窗口
猜你喜欢

Mathematical modeling -- heat conduction of subgrade on Permafrost

Lxml web page capture the most complete strategy

什么是作用域和作用域链

Why can't Bi software do correlation analysis

awvs无法启动问题

特殊流&Properties属性集实例遇到的问题及解决方法

Comprehensive explanation of "search engine crawl"

2022年编程语言排名,官方数据来了,让人大开眼界

Mathematical modeling -- red wine quality classification

"Activity recommendation" rush rush! 2022 international open source Festival has new content
随机推荐
【云原生与5G】微服务加持5G核心网
一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力
Number of consecutive subarrays with leetcode/ and K
Implementation of 10m multifunctional signal generator with FPGA
Flexible layout single selection
"Wei Lai Cup" 2022 Niuke summer multi school training camp 2, sign in question GJK
Basic working principle and LTSpice simulation of 6T SRAM
Qt源码分析--QObject(4)
Jetpack--了解ViewModel和LiveData的使用
JVM内存溢出在线分析Dump文件以及在线分析打开.hprof文件得出JVM运行报告jvisualvm怎么在线分析
【ONE·Data || 数组堆简单实现及其延伸】
全志T3/A40i工业核心板,4核[email protected],国产化率达100%
mobile-picker.js
Promise解决异步
弹性布局 单选
Add graceful annotations to latex formula; "Data science" interview questions collection of RI Gai; College Students' computer self-study guide; Personal firewall; Cutting edge materials / papers | sh
Rgbd point cloud down sampling
Random talk on distributed development
Monadic linear function perceptron: Rosenblatt perceptron
Ignore wechat font settings