[英]Excel to CSV with special characters?
I have 1000 rows, many of which contain chinese or special characters. 我有1000行,其中许多包含中文或特殊字符。 I tried uploading my excel file to Google sheets and downloading as a CSV file.
我尝试将我的Excel文件上传到Google表格并下载为CSV文件。 However instead of displaying a ?
但是不是显示? (as it does when I try save as CSV through excel) character it just displays other random characters.
(当我尝试通过excel保存为CSV时)它会显示其他随机字符。
What do I need to do? 我需要做什么?
Try to use UTF-8 encoding and add a BOM prefix (\) to the beginning of the file. 尝试使用UTF-8编码并在文件的开头添加BOM前缀(\\ uFEFF)。 It works for me.
这个对我有用。
You need to save the file using UTF-16 encoding, so you will need to select Unicode Text
, however this will save the file using TAB delimiters instead of COMMAs. 您需要使用UTF-16编码保存文件,因此您需要选择
Unicode Text
,但是这将使用TAB分隔符而不是COMMA来保存文件。 If this is Ok, then you are done. 如果这是好的,那么你就完成了。
Otherwise, follow this article to help you change the TABs to COMMAs. 否则,请按照本文帮助您将TAB更改为COMMA。
https://www.ablebits.com/office-addins-blog/2014/04/24/convert-excel-csv/#export-csv-utf8 https://www.ablebits.com/office-addins-blog/2014/04/24/convert-excel-csv/#export-csv-utf8
您应该使用UTF-8保存文件,以确保正确保存所有字符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.