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

ConvertAnsiToUTF8

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

Declaration

Source position: lconvencoding.pas line 131

var 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

TConvertEncodingFunction

  

Specifies a function used to convert a single-byte string value to a specific multi-byte encoding.

ConvertEncodingToUTF8

  

Converts the specified string value to the UTF-8 encoding.


Version 4.0 Generated 2025-05-03 Home