Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetCSVFormatSettings.Encoding Property

Specifies the text encoding for the CSV file format.

#Declaration

Delphi
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