Skip to content

Support escaping delimiter with a definable character#25

Open
DaveakX wants to merge 3 commits into
kentcb:masterfrom
DaveakX:master
Open

Support escaping delimiter with a definable character#25
DaveakX wants to merge 3 commits into
kentcb:masterfrom
DaveakX:master

Conversation

@DaveakX

@DaveakX DaveakX commented Mar 26, 2021

Copy link
Copy Markdown

This implements support for escaping the delimiter character with a user definable character and so allow support for reading in csv that use " rather than "".

DaveakX added 3 commits March 26, 2021 16:56
  for escaping the value delimiter rather than the delimiter value
  appearing twice.

* CsvReader.cs: Support passing the EscapeCharacter down to the
  CsvParser.

* CsvParser.cs:
* CsvParser_Async.cs: Added property to specify an escape character to
  use for handling the delimiter character appearing within the value.
  When specified this character will act as an escape character rather
  than needing to have the delimiter character twice. e.g. setting \
  as the escape character would support escaping values like "some
  \"quoted\" text" rather than "some ""quoted"" text".
@zzymyn

zzymyn commented Jul 17, 2022

Copy link
Copy Markdown

+1 this is sorely needed

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