[Lazarus] UTF8 RTL for Windows
Jürgen Hestermann
juergen.hestermann at gmx.de
Sat Nov 22 14:37:00 CET 2014
Am 2014-11-20 um 17:21 schrieb Mattias Gaertner:
> The development version of FPC 2.7.1 has extended Strings and many RTL
> functions now work for codepages other than the system codepage.
....
> 2. The new mode: The LCL, FCL and RTL treat all "String" as UTF-8 encoded.
...
> When accessing the WinAPI you must use the W functions or use
> UTF8ToWinCP and WinCPToUTF8.
Is this correct?
The W functions of the WinAPI expect UTF16 so
a conversion needs to be done in both cases,
either to System code page or to UTF16.
Or can we use STRING with WinAPI W functions directly?
More information about the Lazarus
mailing list