Sign in Join
FPDoc Onlineexperiment

ConvertAnsiToUTF8 variable

In unit LConvEncoding

Contains the routine used to convert an ANSI string value to UTF-8 encoding.

Declaration

pascal
ConvertAnsiToUTF8: TConvertEncodingFunction = Nil

Description

ConvertAnsiToUTF8 is a TConvertEncodingFunction variable with the routine used to convert a String from its ANSI-encoded value to the UTF-8 encoding. A routine which implements the TConvertEncodingFunction interface can be assigned to ConvertAnsiToUTF8 to handle conversions from the default text encoding, which may use an OEM code page, to the UTF-8 encoding.

By default, a routine is NOT assigned to ConvertAnsiToUTF8.

ConvertAnsiToUTF8 is called (when assigned) from the ConvertEncodingToUTF8 routine.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.