Re:ASCII and Unicode quotation marks
by ygra on Thursday September 14, 2017 @05:36AM
(#15246280)
Your CSV would actually look like this instead:
(Omitted optional quotes for fields that don't need them). Quotes are escaped with "", and line breaks don't need escaping, they just have to be in a quoted field. And there is no space after a comma, except you want that space to be part of the field's value.
[ Parent
| on HN ]
Thanks for the correction regarding escaping, but I think you went a little overboard on the other alterations:
> Omitted optional quotes for fields that don't need them
I think it's good policy to always wrap your contents in quotes regardless of whether you have a delimiter that needs quoting. And in fact many CSV marshallers will do just this.
> And there is no space after a comma
That was added purely for readability on HN. I agree it's not how you'd normally marshal the contents.