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

Support escaping delimiter with a definable character #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DaveakX
Copy link

@DaveakX DaveakX commented Mar 26, 2021

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 "".

  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
Copy link

zzymyn commented Jul 17, 2022

+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