|
|
|
|
|
by diamondo25
3206 days ago
|
|
I've been trying to push TSV (tab separated values) as a standard response/implementation when they ask for CSV. "Yes but its comma separated!", sure is, but text can contain commas...
I have seen issues with Google Spreadsheets not recognizing the tabs however... Excel doesnt know what to do with a TSV either. But both have a complete wizard for parsing CSV... |
|
Erm.. text can contain tabs, too. This problem was solved so, so long ago when all the various ANSI/ASCII/whatever encodings were compiled by specifically reserving not one but two characters precisely to serve as field and record delimiters.
0x30 and 0x31 solved not only the problem of having commas or tabs in your text preventing you from treating them as field delimiters, but also allowing you to include new lines and carriage returns in your fields, too!
0x30 is the unit separator (aka field delimiter) and 0x31 is the record separator (aka, well, the record separator).
I _believe_ there was a record key on some standardized keyboard layout back in the day, too.
Edit: sorry, they are decimal, not hex. Thanks @jrochkind1