Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent double quotes #3

Open
Davker321 opened this issue Nov 14, 2021 · 1 comment
Open

Inconsistent double quotes #3

Davker321 opened this issue Nov 14, 2021 · 1 comment

Comments

@Davker321
Copy link

It is unclear to me why you RECOMMEND only using a text qualifier if there is a field delimiter or other awkward character, as opposed to having file structure consistency.

@jimeh
Copy link
Member

jimeh commented Nov 16, 2021

My intention was two-fold:

  • It produces simpler CSV data for fields where quoting is not needed, which in my opinion makes it easer to work with the data overall compared to if every field is always quoted.
  • It hopefully encourages CSV library developers to properly consider the possibility of files and records having a mixture of quoted and unquoted fields. Over the years I've seen quite a few libraries that always quotes every field on output, and fail to parse CSV data if all fields are not quoted, or if there's a mixture of quoted and unquoted fields.

I hope that answers your question, if not, I'm happy to discus further.

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

No branches or pull requests

2 participants