| | CSV delimiters Todd Lehman
|
| | Is there any "official" or "reasonably standardized format" for CSV (_C_omma _S_eparated _V_alue) data? I guess it's pretty obvious, mostly, but how are the delimiter characters typically encoded (specifically: comma, double-quote, and newline)? In (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | |
| | | | RE: CSV delimiters Bram Lambrecht
|
| | | | (...) Sorry, I can't help. And I hate the way Excel outputs in plain text. But since it's 2:30 in the morning, I'll make useless comments. Sounds like you're working on the question I asked...augh, and I just entered all the sets manually. Oh well, (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | |
| | | | | | Re: CSV delimiters Todd Lehman
|
| | | | | (...) I hate it too. IIRC, Excel uses "" instead of \" for an escaped " -- but I could be wrong. I just remember hating it once when I looked at it. :) One nice thing, though, is that Excel can import tab-delimited text, so that's it's saving grace. (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | | |
| | | | | | | Re: CSV delimiters Todd Lehman
|
| | | | | (...) Eeek -- shame on me -- did I just say "it's" when I meant "its"? Anyway, I forgot to say: The idea of escaping quotes is *bizarre* in the first place. IMHO, there shouldn't *be* any closing double-quote character on a field once it has already (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | | |
| | | | | | | RE: CSV delimiters Bram Lambrecht
|
| | | | | (...) I agree. I was trying to hack an Excel file into some usable html, and those "" made it nearly impossible for me to do search and replaces to get valid html without messing it up in other places. --Bram Bram Lambrecht BXL34@po.cwru.edu (URL) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | | |
| | | | | | | Re: CSV delimiters Todd Lehman
|
| | | | | (...) I think there are a variety of CSV-to-HTML-table converters floating around that you can download -- I saw at least 3 earlier while searching before posting. You'd probably want to look for one that somehow auto-sensed whether quotes were (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | | |
| | | | Re: CSV delimiters Matthew Miller
|
| | | | (...) I remember looking for this about a year ago, and I came across something that looked very standardish. If I remember right, it's really silly. You don't actually escape things. Fields are comma separated, and optionally surrounded by (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | |
| | | | | | Re: CSV delimiters Matthew Miller
|
| | | | | | There exists (in CPAN) a Text-CSV perl module. From its documentation: This module is based upon a working definition of CSV format which may not be the most general. 1 Allowable characters within a CSV field include 0x09 (tab) and the inclusive (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | | | |
| | | | | | | | Re: CSV delimiters Todd Lehman
|
| | | | | | | (...) Aha! Excellent. Those docs sound well thought out. Hmm, that reminds me... Duh, this is prolly a common Perl thing. I bet Freidl[1] as some stuff on CSV? Lessee... <dig dig dig> Ahh, here we go: pp. 204-208, 227, 231, 290. And (haha!) it even (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | | | | |
| | | | | | Re: CSV delimiters Matthew Miller
|
| | | | | Maybe this will also be helpful. It's not exactly a standard, but it is IEEE. :) (URL) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | | |
| | | | Re: CSV delimiters Anders Isaksson
|
| | | | Todd Lehman skrev i meddelandet ... (...) I see in the thread that you've got most of the answers you need, but there is at least one complication in the Windows world (if you ever get files from that): The MS programs (and many others too, as (...) (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | |
| | | | | | Re: CSV delimiters Todd Lehman
|
| | | | (...) Dang. THAT is a very important piece of info -- thanks! OK... Are there any popular programs out there (on the level of Excel, etc.) which only handle CSV text and don't handle tab-delimited text data? --Todd (24 years ago, 23-Sep-00, to lugnet.admin.database, lugnet.off-topic.geek, lugnet.publish)
|
| | | | |