Sign in Join
FPDoc Onlineexperiment

TConvertUTF8ToEncodingFunc procedure type

In unit LConvEncoding

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

Declaration

pascal
TConvertUTF8ToEncodingFunc = function(const s: string; 
 SetTargetCodePage: Boolean=False)
: RawByteString

Arguments

s

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

SetTargetCodePageTrue 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

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