Converts null-terminated Unicode string to single or multi byte character data.
Unit
System
Category
character set conversions
Delphi syntax:
function WideCharToString(Source: PWideChar): string;
C++ syntax:
extern PACKAGE AnsiString __fastcall WideCharToString(wchar_t * Source);
Description
WideCharToString converts the given null-terminated Unicode string to a string made up of single- or multi-byte characters.
Delphi Help
Клавиша F1, ключевое слово WideCharToString.
Также можно воспользоваться функцией WideCharToMultiByte (Windows API, см. MSDN) с кодировкой CP_ACP.