4 ms·
Considering how vaguely defined CSV is as a format, the challenge might have specified that a bit better. Fun nonetheless.
by troels 11y ago
Considering how vaguely defined CSV is as a format, the challenge might have specified that a bit better. Fun nonetheless.
- whoopdedo 11y agoWhen he said "old school" I was expecting fixed-length records.
- userbinator 11y agoWhen I see CSV I think RFC4180. It's not a real "standardised standard", but good enough to be one, and probably what a lot of tools will produce and consume if asked to process CSV.
- troels 11y agoIn my experience, CSV is very fuzzy. Do you include headers? What character is used for separator? Comma? Semi colon? Tab? Are fields enclosed in quotes? How are quotes within quotes escaped? What encoding do you use for non-ascii symbols? &c &c .. Without are sample reference, these are all very common variables.
- userbinator 11y agoWhat character is used for separator? Comma? Semi colon? Tab? It isn't Comma-Separated-Values if fields are not separated by commas, but the others are valid points. Failure to handle quoting correctly is the most common form of broken CSV support I've seen. Encoding is usually specified out-of-band.
- troels 11y agoTechnically no, but if you are in mainland Europe, Excel will happily save your CSV files using a semi colon. And, yes - that _is_ maddening.