TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Is this a better .csv?

5 pointsby reactorpresabout 5 years ago

2 comments

ktpsnsabout 5 years ago
CSV with special seperation characters is nothing new. It won&#x27;t generally solve the problem, because the choice of the seperation characters is always related to the data supposed to be hold by the table. Just think about a CCSV file holding CCSV files.<p>If you want to avoid escaping, you need to declare the length of your fields, so it says for instance &quot;now come 20 bytes of field value&quot; and no termination symbol is necessary. This is nothing new, read about the pros and cons of null terminated strings or old and traditional standards such as ASN.1 if you want to learn more about that.<p>I don&#x27;t like the name TSV (Tab seperated values), because it is just CSV, and the name should be agnostic about the used seperators. See for instance <a href="https:&#x2F;&#x2F;pandas.pydata.org&#x2F;pandas-docs&#x2F;stable&#x2F;reference&#x2F;api&#x2F;pandas.read_csv.html" rel="nofollow">https:&#x2F;&#x2F;pandas.pydata.org&#x2F;pandas-docs&#x2F;stable&#x2F;reference&#x2F;api&#x2F;p...</a> for a versatile parsing library in a widespread data science library. It just calls all these data formats <i>CSV</i>.
zzo38computerabout 5 years ago
The SQLite command shell supports the format described there. I have also independently used the same format too. But now, they have a name for it, which can be useful.<p>One variant I have sometimes used is DLE to escape the next character if it is a control character that should be part of the data.
评论 #22587128 未加载