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

WinCPToUnicode

Converts the specified string to Unicode.

Declaration

Source position: lazunicode.pas line 51

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.


Version 4.0 Generated 2025-05-03 Home