Skip to main content

TdxSpreadSheetCSVFormatSettings.Encoding Property

Specifies the text encoding for the CSV file format.

Declaration

property Encoding: TEncoding read; write;

Property Value

Type
TEncoding

Remarks

Refer to the following code example to learn how to change the default encoding for CSV files:

// Add the dxSpreadSheetFormatCSV unit to the list of units used in your project
uses
  dxSpreadSheetFormatCSV;
// Setting the CSV file encoding to UTF-8; change the TEncoding.UTF8 to
// TEncoding.Unicode, TEncoding.UTF7, or TEncoding.ASCII if you require
// the Unicode, UTF7, or ASCII text encoding, respectively
  dxSpreadSheetCSVFormatSettings.Encoding := TEncoding.UTF8;

The default value of the Encoding property is TEncoding.Default.

See Also