#DataTipOfTheDay 2012-02-01Q: "I exported a CSV from System X and quotation marks in text fields are messing everything up! What do I do?"
A: I would first see if the data can be exported differently. Ideally, it should be exported so that two double-quotes appear every time a double-quote appears within a field's value. For example, if my table looks like this:
My CSV export ideally looks like this:
That’s the standard format Microsoft apps (and Salesforce, and Data Loader) use with CSVs. If the data can’t be exported like that, then the next-best answer would be one of a couple of hacky workarounds, depending on what’s possible:
You might also like a similar help topic I wrote last year, about commas. |