[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Converts a UTF-8-encoded string to console (OEM) encoding.
Source position: lazutf8.pas line 55
function UTF8ToConsole( |
const s: string |
):string; |
s |
|
UTF-8-encode input values. |
OEM-encoded value for the string.
UTF8ToConsole converts a UTF-8-encoded string to console (OEM) encoding as used in Write and WriteLn. The implementation is platform specific.
For the Windows environment, either UTF8ToSys or UTF8ToWinCP is used to convert the value to the codepage or character set needed in RTL. The Windows CharToOem API is used to prepare the return value. In UNIX-like environments, UTF8ToSys is used to get the return value .
|
Ensures UTF-8 characters (or format settings) are converted to the system code page. |
|
|
Converts the UTF-8-encoded string to the Windows code page encoding. |
Version 4.0 | Generated 2025-05-03 | Home |