[Overview][Types][Procedures and functions][Index] Reference for unit 'LCSVUtils' (#lazutils)

TCSVEncoding

Represents character encodings used for values in CSV data.

Declaration

Source position: lcsvutils.pas line 21

type TCSVEncoding = (

  ceAuto,

  

Auto-detects character encoding applied to the CSV data.

  ceUTF8,

  

CSV data uses the UTF-8 encoding.

  ceUTF16,

  

CSV data uses the UTF-16 encoding.

  ceUTF16be

  

CSV data uses the UTF-16 Big-Endian encoding.

);

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

LoadFromCSVFile

  

Loads and processes comma-separated values from the specified file.

LoadFromCSVStream

  

Loads and processes comma-separated values from the specified stream.


Version 4.0 Generated 2025-05-03 Home