Excel to CSV with special characters?

核能气质少年 提交于 2019-12-11 11:54:38

问题


I have 1000 rows, many of which contain chinese or special characters. I tried uploading my excel file to Google sheets and downloading as a CSV file. However instead of displaying a ? (as it does when I try save as CSV through excel) character it just displays other random characters.

What do I need to do?


回答1:


You should save file with UTF-8 to make sure all characters are properly saved.




回答2:


Try to use UTF-8 encoding and add a BOM prefix (\uFEFF) to the beginning of the file. It works for me.




回答3:


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. If this is Ok, then you are done.

Otherwise, follow this article to help you change the TABs to COMMAs.

https://www.ablebits.com/office-addins-blog/2014/04/24/convert-excel-csv/#export-csv-utf8



来源:https://stackoverflow.com/questions/31419778/excel-to-csv-with-special-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!