Click or drag to resize
CsvDataReaderUserSettingsEscapeMode Property
Specifies how to escape an occurance of system characters, like the TextQualifier and Delimiter, inside field values when required. Default is Doubled.

Namespace: DataStreams.Csv
Assembly: DataStreams (in DataStreams.dll) Version: 5.20.0.0
Syntax
public EscapeMode EscapeMode { get; set; }

Property Value

Type: EscapeMode
Remarks
When the EscapeMode is set to Doubled, occurances of the TextQualifier will be expected to be escaped by replacing it with two consecutive occurances of the TextQualifier. This is the format generally used for CSV in applications such as Excel. When the EscapeMode is set to Backslash, occurances of the TextQualifier will be expected to be escaped by preceding it with a backslash character. This format is common in Unix type environments. When the EscapeMode is set to Backslash, the following escape sequences are also recognized and replaced inside field values.
EscapeDescription
\nNew Line, ASCII 10
\rCarriage Return, ASCII 13
\tTab, ASCII 9
\bBackspace, ASCII 8
\fForm Feed, ASCII 12
\eEscape, ASCII 27
\vVertical Tab, ASCII 11
\aAlert, ASCII 7
FormatDescription
\u#### or \U###Unicode, ex. \u0041 = 'A'
\x## or \X##Hexadecimal, ex. \x41 = 'A'
\o### or \O### or \###Octal, ex. \o101 = 'A'
\d### or \D###Decimal, ex. \d065 = 'A'
See Also