Quote and CsvMode.NoEscape deliever unexpected result #2222
-
Is it possible to read those values?
Expected result would be
I struggle to find the correct setting to support this file.
Which I expected to result into
It would be sufficient to get this result, and I would trim the quote
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What you're trying to do doesn't fall into any of these modes. If you aren't escaping a quote inside a field, I don't see how you could determine that the field ends. |
Beta Was this translation helpful? Give feedback.
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 asa;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…