ConvertUTF8ToAnsi variable
Contains the routine used to convert from UTF-8 encoding to ANSI encoding.
Declaration
ConvertUTF8ToAnsi: TConvertUTF8ToEncodingFunc = NilDescription
ConvertUTF8ToAnsi is a TConvertUTF8ToEncodingFunc variable with the routine used to convert a string value from UTF-8 encoding to ANSI encoding. A routine which implements the TConvertUTF8ToEncodingFunc interface can be assigned to ConvertUTF8ToAnsi to the conversion.
The arguments to the routine include the UTF-8-encoded string converted in the function, and a boolean argument which indicates if the code page should be set for the string in the return value. Set the SetTargetCodePage parameter to True to set the code page for the ANSI string in the return value. The default value for the argument is False.
By default, a routine is NOT assigned to ConvertUTF8ToAnsi.
ConvertUTF8ToAnsi is called (when assigned) from the ConvertEncodingFromUTF8 routine.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
