Property EscapeCharacter
EscapeCharacter
Gets or sets the character written in front of a quote character appearing inside a quoted field.
Defaults to null, which writes such a quote as two quotes, the RFC 4180 convention that
ImportConfig and most other CSV tools read.
public char? EscapeCharacter { get; set; }
Property Value
- char?
Remarks
Setting this to the quote character is the same as leaving it unset. Setting it to anything else switches to escape-prefix quoting, where the escape character is itself written twice wherever it appears literally, so a value can never be mistaken for carrying an escape it did not. A file written this way has to be read back with the matching EscapeCharacter, because the two conventions read the same bytes as different values.