Re:Show HN: Comma Separated Values (CSV) to Unicode Separate...
by lelanthran on Tuesday March 12, 2024 @12:33PM
(#39681472)
> Not quite. What if there is a \ in your data? Then you have to escape that.
No problem, any character following a `\` is a literal character. `\\` => literal `\`. `\,` => literal comma. `\a` => literal `a`, etc.
Parsing this is easy, generating it is easy, and there is only one rule to remember for humans reading or generating it.
Each rule added for parsing is one more added complexity and point of failure.
Re:Show HN: Comma Separated Values (CSV) to Unicode Separate...
by philipwhiuk on Tuesday March 12, 2024 @01:29PM
(#39682309)
You still have to solve this in USV.
Not quite. What if there is a \ in your data? Then you have to escape that.