Sign in Join
FPDoc Onlineexperiment

TCSVEncoding enumeration

In unit LCSVUtils

Represents character encodings used for values in CSV data.

Declaration

pascal
TCSVEncoding = (ceAuto,ceUTF8,ceUTF16,ceUTF16be)

Description

TCSVEncoding is an enumerated type which represents character encodings used for CSV data. A value from the enumeration can be passed as an argument to the LoadFromCSVFile and LoadFromCSVStream routines.

A value from the enumeration is passed as an argument to the LoadFromCSVFile and LoadFromCSVStream routines. It identifies the character encoding for the byte values read from the data source, and determines the actions needed to convert the byte values to the UTF-8 encoding needed for the String type.

See also

Values

ceAutoAuto-detects character encoding applied to the CSV data.
ceUTF8CSV data uses the UTF-8 encoding.
ceUTF16CSV data uses the UTF-16 encoding.
ceUTF16beCSV data uses the UTF-16 Big-Endian encoding.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.