Skip to content

TCSVParser.DetectBOM

Must the parser attempt to read the BOM marker ?

Declaration

Source position: csvreadwrite.pp line 163

public property DetectBOM: Boolean default False;

Description

DetectBOM can be set to True if you want the CSV parser to attempt to detect a BOM marker. If set to True, then ResetParser will attempt to read the BOM marker when the CSV data is set using SetSource The result of the detection is available the in BOM property) after the source data is set. It follows that DetectBOM must be set before calling SetSource.

See also

Name Description
SetSource Set the CSV source data.
ResetParser Reset the parser to its initial state.
BOM type of BOM marker found at the start of the data.