Skip to content

Conversation

@LoneRifle
Copy link
Contributor

@LoneRifle LoneRifle commented Jun 26, 2021

Ensure that downloaded CSVs are properly formatted

  • JSON.stringify() object-type values

  • Ensure proper quotation of values per RFC4180 Section 2, clauses 6 and 7; if a
    value contains " or , or a newline, enclose in double-quotes
    and take care to escape pre-existing " as ""

- `JSON.stringify()` object-type values

- Ensure proper quotation of values per RFC4180 Section 2; if a
  value contains `"` or `,` or a newline, enclose in double-quotes
  and take care to escape pre-existing `"` as `""`

References:

https://datatracker.ietf.org/doc/html/rfc4180#section-2
@Wattenberger
Copy link

great call, thanks for the PR!

@Wattenberger Wattenberger merged commit f0531da into githubocto:main Jun 28, 2021
@LoneRifle LoneRifle deleted the fix/csv/formatting branch June 28, 2021 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants