Sign in Join
FPDoc Onlineexperiment

WinCPToUnicode function

In unit LazUnicode

Converts the specified string to Unicode.

Declaration

pascal
function WinCPToUnicode(const s: AnsiString): string

Arguments

s

String with Windows code page values.

Function result

Unicode values for the specified string.

Description

Converts the specified value from the Windows system codepage to Unicode. The Unicode encoding used depends on the modeswitch value. For platforms that require UTF-16, WinCPToUTF8 and UTF8ToUTF16 are called to get the return value for the function. Except when String is defined as UnicodeString. No conversion is required in that situation. For other platforms, WinCPToUTF8 is called to get the return value.

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