Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

到处的csv中文是乱码 #37

Closed
Caesar1980 opened this issue Mar 13, 2023 · 2 comments
Closed

到处的csv中文是乱码 #37

Caesar1980 opened this issue Mar 13, 2023 · 2 comments

Comments

@Caesar1980
Copy link

按照步骤导出的csv中文现实乱码

@piglei
Copy link
Owner

piglei commented Mar 14, 2023

export 命令所导出的 csv 文件使用了 UTF-8 编码。不知道你用的是什么编辑器,你可能需要调整编辑器设置来正常展示 UTF-8 编码。

@piglei piglei closed this as completed Mar 14, 2023
@Love4yzp
Copy link

我猜测你应该是在 Windows 下用了 Excel 打开。 由于本程式的 csv 导出只是 UTF-8,而不是 UTF-8 with BOM,所以 Excel 读取时不会以 UTF-8 的编码方式读取,导致中文乱码。

引用:https://zhuanlan.zhihu.com/p/364136283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants