Skip to content

When a different quote character is used in config, it invalidates the record with double quote (") character inside field  #1509

Closed
@rraz-np

Description

@rraz-np

Consider following example of csv

|field1|,|field2|
|val11|,|val12|
|val21|,|val"22"|

I have setup | character as quote character as following
CsvConfiguration config = new CsvConfiguration(CultureInfo.InvariantCulture);
config.Quote = '|';

I get BadDataFound for second row i.e. |val21|,|val"22"|
The " character in this case should have been ignored.

If I include the following code,
config.IgnoreQuotes = true;
then the values includes | characters even though config.Quote = '|';

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions