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

CsvReport: escape special characters #245

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

danielesegato
Copy link
Contributor

the default escape character for CSV is " which has to be escaped with a double ""

Additionally, when a column contains any of these character it has to be put inside quotes:

  • " (double quote)
  • , (comma)
  • ' (single quote)
  • \ (backslash)
  • \n (new line)

This should fix #223

the default escape character for CSV is " which has to be escaped with a
double ""

Additionally, when a column contains any of these character it has to be put inside
quotes:

- " (double quote)
- , (comma)
- ' (single quote)
- \ (backslash)
- \n (new line)
@jaredsburrows jaredsburrows merged commit f0b7ebc into jaredsburrows:master Mar 1, 2023
@jaredsburrows
Copy link
Owner

Thank you.

@danielesegato danielesegato deleted the pr/csv-escapes branch March 3, 2023 12: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.

CSV writer doesn't escape / remove commas & newlines
2 participants