Convert CSV records to TSV: Difference between revisions
m
→{{header|J}}
m ("robustness" in quotation marks) |
m (→{{header|J}}) |
||
Line 155:
Also, we escape all backslashes, regardless of what character follows, during tsv encoding.
Here, also, we interpret "nonsense" as starting
For csv parsing we first break out fields using [[j:Vocabulary/semico#dyadic|;:]]. Here, each field is preceded by a delimiter. (We discard an optional trailing newline from the csv text and prepend a newline at the beginning so that every field has a preceding delimiter. Also, of course, if we were given a file reference, we work with the text of the file rather than its name.)
|