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

TConvertUTF8ToEncodingFunc

Specifies a function used to convert a string value from UTF-8 encoding to another encoding with an optional code page.

Declaration

Source position: lconvencoding.pas line 127

type TConvertUTF8ToEncodingFunc = function(

  const s: string;

  SetTargetCodePage: Boolean = False

):RawByteString;

Arguments

s

  

UTF-8-encoded string value converted in the routine.

SetTargetCodePage

  

True to set the target code page, False if the code page is not needed.

Function result

Value for the string using the code page / encoding implemented in the routine.

Description

TConvertUTF8ToEncodingFunc is the type used for the ConvertUTF8ToAnsi variable in lconvencoding.pas.

See also

ConvertUTF8ToAnsi

  

Contains the routine used to convert from UTF-8 encoding to ANSI encoding.


Version 4.0 Generated 2025-05-03 Home