yangtao18196703459

Excel转格式为CSV时,中文不能正常显示往往是由于编码格式(encoding)不兼容导致的。但我们可以通过以下方式完美解决该问题。只需4步,非常简单。

参考链接:https://blog.csdn.net/vernice/article/details/46338425

 

1、保存将要转化的Excel文件为Unicode text(*.txt)格式,如下图所示。

 

Save your Excel workbook as Unicode Text (*.txt) file.

 

 

 

2、使用记事本打开步骤1中保存的文件,并将空格全部替换为英文字符中的逗号",",如下图所以。选中打开文件中的空格,按下Ctrl+C完成复制。

 

Copy the tab character in a .txt file.

 

 

 

接着按下Ctrl+H,打开替换对话框,将空格替换为英文符号中的逗号。

 

Replace all tabs with commas.

 

 

 

替换后的效果如下图所示。

 

A comma-separated text file in Notepad

 

 

 

3、以UTF-8编码格式保存步骤2中的文件,如下图所示。

 

Change the encoding to UTF-8 and click the Save button.

 

 

 

4、重新打开步骤3中的保存的文件,然后将之保存为.csv文件,如下图所示。注意文件类型要选择All File “*.*”。

Change the .txt file extension to .csv directly in Notepad\'s Save as dialog.

 

分类:

技术点:

相关文章:

  • 2021-07-07
  • 2021-05-14
  • 2021-11-19
  • 2021-05-07
  • 2021-11-19
  • 2021-11-22
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2021-08-06
  • 2021-08-09
  • 2021-06-15
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
相关资源
相似解决方案