ConsoleToUTF8 function
Converts an OEM-encoded string to UTF8.
Declaration
function ConsoleToUTF8(const s: string): stringDescription
ConsoleToUTF8 is a
String function used to converts an
OEM-encoded string to UTF8. The implementation of ConsoleToUTF8 is
OS-specific, and essentially handles differences between various Windows
platforms where use of
OemToChar and
WinCPToUTF8 are
required. For UNIX-like environments, the value in s is converted by calling
SysToUTF8.
ConsoleToUTF8 is used in the implementation of the
GetEnvironmentStringUTF8 and GetEnvironmentVariableUTF8
functions.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
