简体   繁体   中英

Converting an Excel file with special characters to a CSV with these preserved

I am trying to convert an Excel spreadsheet that contains some special characters such as "ñ" which are not preserved when I save as a CSV file using the simple 'save as > csv' approach in excel.

Is there a method for doing this that will preserve these characters?

Thanks, Simon

I came across this issue recently when trying to import into mysql.

There are a couple of ways round it, but you are best to create your own delimiters then save it as standard text.

Depending on how many columns there are - you might want to do this a number of ways, but one way or another at the end of your data do A1 & "," & B1 & "," etc - or you could use the iterative functions to make it do this for you by dragging down.

Once you have this string - put an equals at the front and it should concatenate the lot.

You can then move all rows to a new sheet and save as text. You'll have a pure csv, without any of the nasty unicode problems that often occur.

Hope that helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM