Reputation: 2492
If a .csv
mime type denotes a "Comma Separated Value" list, I would like to know if there is an equivalent for a list of values, with the delimeter being a \n
linebreak?
I would rather use this, as my values that I am listing include commas, but not linebreaks.
Upvotes: 2
Views: 672
Reputation: 2492
A Tab Separated Value List, with the extension .tsv
is the best alternative, given that it uses newlines as a delimiter on rows, and tabs as a delimiter on columns.
This also will grant expandability if you wish to ever add any additonal data to each list item, and even the added benefit of being able to import the item into a database. Just make sure the first line serves as a header for each column.
Upvotes: 1
Reputation: 189618
What you are describing sounds like simply text/plain
. While this sort of formatting is common, there is no explicit standard, and so, it would probably be futile for MIME to try to articulate one which genuinely provides value for interoperablility while being flexible enough for all the various uses of "data" text files.
(CSV is a thorny counter-example because there are several mutually incompatible dialects. Still, it is reasonably well-standardized in that everyone will think they know what you mean when you say CSV.)
Upvotes: 1