This isn't intended to be a data exchange format, it is a serial data storage format. In this way, there may be some valid usages, but modern file systems do not need this sort of representation and it has no real benefit over *SV formats for most use cases. I suppose It could still be used for limited exchange, but since it can't be used storing binary, much less Unicode (except for perhaps UTF-8), other formats are less ambiguous and more capable.
ASCII Delimited Text – Not CSV or TAB delimited text
221–230 of 286 posts
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#222Ascii table for IBM PC charset (CP437) - Ascii-Codes
They correspond to these Unicode characters
28 FS ∟ 221f right angle
29 GS ↔ 2194 left right arrow
30 RS ▲ 25b2 black up pointing triangle
31 US ▼ 25bc black down pointing triangle
They may not be particularly intuitive symbols for this purpose though.see also: IBM Globalization - Graphic character identifiers: http://www-01.ibm.com/software/globalization/gcgid/gcgid.htm... (then search for a code point, eg U00025bc)
Unicode code converter [ishida >> utilities]: http://rishida.net/tools/conversion/
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#223Earlier quoted context omitted.
TLDR: it's superior, but don't do it...
That's unfortunately a very accurate summary:) Real estate data, traffic data, weather data, population demographics, stock prices, tweets - I've parsed all that and more. Every one of them was a giant Tsv (except finance ones, which were csv's because Excel). Say you purchase the database containing every single home sold/bought in California for past decade. That's 11 20gb Tsv's with 250 tab separated columns plus…
What you write is so true. So many large companies use text files to shuttle around data. I worked at one place that used pipe-delimited 10+GB files. It's not sexy, and using awk/sed/cut seems like a hack at first, then you realize that it works and it is the simplest solution to the problem.
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#224Earlier quoted context omitted.
I think the answer is that those shouldn't occur within your data. If you're dealing with binary data, why are you using a text-based file format? If your data is textual, it shouldn't have control character delimiters within it, as they are reserved for that context. So, strip them out of your data if you have to. If you think they need to be preserved or escaped, IMO you're doing something wrong.
What if your delimited file needs to contain other delimited files?
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#225Earlier quoted context omitted.
Tabs are not a record separator. They are a formatting code. That's why a mess is created when they are used to separate records.
You just gave further proof that tabs are a catch-22.
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#226It sort of works, but there are known issues which I have listed in the README.
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#227Earlier quoted context omitted.
Thank you for clarifying something that no one was disputing or event mentioned.
Yeah, I hate it when people point out interesting things I didn't know before too.
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#228Earlier quoted context omitted.
I was surprised to see you list tsv as more common than csv. I encounter csv's on a pretty regular basis, but I don't think I've had to parse a tsv in the past 3 or 4 years. As a junior web developer, I don't have much experience though. 9 times out of 10, the csv is coming from or going to Excel, or a system that was designed to support Excel. If you don't mind my asking, what types of data do you regularly work wit…
Your comment disturbs me a little… One of my gripes with Excel was that it imported and produced TSV data by default when you asked for CSV.
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#229I've done this. Everybody hated it. Most text editors don't display anything useful with these characters (either hiding them altogether or showing a useless "uknown" placeholder), and spreadhseet tools don't support the record separator (although they all let you provide a custom entry separator so the "unit" separator can work). Besides the obvious problem that there's no easy way to type the darned things when som…
It's a shame. The solution is in the charset, but tools never developed to use it so we don't use it. But I'd wager that if tools had historically supported them, then the situation would be no different than it is with tab. There are representational glyphs for tab, return, and others (⇥, ↵), and editors can show them in 'show whitespace' modes. There could be representational glyphs for these control characters, to…
Re: ASCII Delimited Text – Not CSV or TAB delimited text
#230Earlier quoted context omitted.
Of those, |, @, #, ^, {, } and ~ are all keys that you need shift for on US Qwerty keyboards, so I imagine that the typing experience for those is relatively comparable.
I fixed my keyboard -- @,#,^,{,}.... no shift by default. Have to press shift to get 2,3,6,[,],9,0,... Must be annoying to have to press shift to get those symbol chars while you're coding, eh?
Honestly no. It's all muscle memory for me, I don't think about it any more than I think about typing capital letters.