Hacker News new | ask | show | jobs
by zelphirkalt 2291 days ago
Afaik CSV is only a subset of DSV as indicated by the name: Comma VS Delimiter separated values. A delimiter can be all kinds of things, while comma is just a comma. However, the name is misused in popular tools, which actually do use other delimiters than comma, but still call it CSV. Any DSV reader in theory should be able to read any CSV file, unless the people implementing something and calling it CSV did not think about the meaning of the words.
1 comments

It's not so. Both CSV (despite of its name) and DSV are able to use an arbitrary character as a delimiter. The real difference between them is the way to escape the delimiter (and to escape the escaper itself). DSV use C-like syntax: \, will be treated as literal comma, \\ will be treated as literal backslash. CSV use quotation marks for this purpose, and in a completely different way.