Hi, I am having problems saving files using the "CSV UTF-8 (comma delimited)" format which is the first of 4 CSV formats in my "Save as type" drop down list.
Consider the Excel file:
ZIP | FirstName | LastName |
90210 | Jonathan "jon" | Doe |
When I save this as a "CSV UTF-8" type I get:
ZIP,FirstName,LastName
90210,"Jonathan "jon"""onat",Doe
The handling of the " characters is wrong, I am guessing that this is some LTR/RTL thing but I asked for 8 bit characters, not RTL.
When I save as a "CSV (comma delimited)" I get the correct result, which aligns to the ISO standard (who knew that there was one!!):
ZIP,FirstName,LastName
90210,"Jonathan ""jon""",Doe
I have not played with the other 2 CSV types; "CSV (Windows)" or "CSV (Macintosh)" so cannot comment on them.
So to the question; is this a bug or desired behaviour? If the latter can you explain please because even Excel will not read it back in correctly.
Some versions:
- OS = Windows 10
- Office = Office 365, version 1610 Build 7466.2038
- Locale is UK English so decimal = "." and thousand separator = ",". I don't have any other locales in use, I even removed the US English one when I set the machine up.
Thanks for your help.
Ps - I have started to use the 2nd format so I am ok for the time being but I have spent about 8 hours trying to work out why this data will not load into my database correctly, this was on row 78,000 in my data, not row 1. I had assumed that Excel was perfect (as it usually is) so had not looked here.