3 ms·
"CSV" is bad because it's not well-formed. There are tons of "CSV" parsers in the wild, and they all make reasonable, but different, choices when it comes to so
by steveklabnik 12y ago
"CSV" is bad because it's not well-formed. There are tons of "CSV" parsers in the wild, and they all make reasonable, but different, choices when it comes to some behaviors. INI is the same way.
- valevk 12y agoCSV RFC: http://tools.ietf.org/html/rfc4180 http://tools.ietf.org/html/rfc4180
- tomjakubowski 12y agoExistence of an RFC doesn't mean that people or tooling conform to it. The CSV RFC doesn't specify an IETF standard, by the way.
- deleted 12y ago[deleted]
- steveklabnik 12y agoDoesn't matter. Nobody follows it :/
- UnoriginalGuy 12y agoExactly. People keep linking to the spec like that matters. The reality on the ground is that CSV has tons of different incompatible implementations or just simply terrible parsers. Even if you produce spec-correct CSV it won't work with a lot of third party's libraries or parsers. Just ask anyone who works with CSV and lots of companies about double quotes around fields, I assure you they'll have a flag in their system to: include them, exclude them, and include them in records which contain commas only. Plus CSV and internationalisation is a giant cluster fuck in its own right. Ever seen a U+FF0C or other comma[0] in a CSV? Yeah that is fun. [0] http://en.wikipedia.org/wiki/Comma#Comma_variants http://en.wikipedia.org/wiki/Comma#Comma_variants
- deleted 12y ago[deleted]