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

NeedRTLAnsi

Indicates if the OS requires use of AnsiToUTF8 and UTF8ToAnsi for the RTL.

Declaration

Source position: lazutf8.pas line 41

function NeedRTLAnsi: Boolean;

Function result

True when the system encoding is not UTF-8.

Description

NeedRTLAnsi is a Boolean function that indicates if the OS requires use of AnsiToUTF8 and UTF8ToAnsi for the RTL. AnsiToUTF8 and UTF8ToAnsi need a widestring manager under Linux, BSD, and Mac OSX. Normally these OS's use UTF-8 as the system encoding so the WideStringManager is not needed.

For the Windows environment, NeedRTLAnsi is True if the default system code page is not CP_UTF8. For UNIX-like environments, NeedRTLAnsi is True when any of the LC_ALL, LC_MESSAGES, or LANG environment variables contain a language code other than UTF-8.

See also

DefaultSystemCodePage


Version 3.2 Generated 2024-02-25 Home