Skip to content

Quote and CsvMode.NoEscape deliever unexpected result #2222

Closed Answered by JoshClose
Rand-Random asked this question in Q&A
Discussion options

You must be logged in to vote

NoEscape means there is no character escaping. This means you wouldn't be able to have a delimiter or line ending in a field. This isn't what you want.

Escape means you'll have an escape character that will precede a character you want to escape. If your escape character is ", a field that contained delimiter would like like this. a";b and would be output as a;b. This isn't what you want either.

RFC4180 is the other and default mode. This uses rules that adhere to RFC 4180. That means fields that contain a delimiter, quote, or line ending, will need to be enclosed in "field" and any quote inside the field needs to be escaped with a quote "field "" with quote".

What you're trying to do doe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Rand-Random
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants