|
|
|
|
|
by kasajian
1284 days ago
|
|
This is a matter of developer education. The correct way to create and parse CSV files is to use a third-party library. They can get complicated. A field in a CSV can contain commas and quotes. In some cases, a single field can contain a line-feed, and you'll need to ensure the parser you use supports that. This would allow an entire CSV file to be embedded inside the field of a CSV field. At a minimum, a parser must support Excel's default parser logic. But, if you pick the right parser and generator, then you're ok with using it. |
|
e.g. the example from my comment on the last CSV discussion (https://news.ycombinator.com/item?id=28223719)
What variant is this:
What is the value of the third column?Is this a CSV file without quoting? Then it's
Or is it a CSV file with double quote escaping? Then it's