[Lazarus] UTF8 RTL for Windows
Sven Barth
pascaldragon at googlemail.com
Mon Nov 24 07:33:25 CET 2014
On 24.11.2014 01:37, luiz americo pereira camara wrote:
>
>
> 2014-11-20 13:21 GMT-03:00 Mattias Gaertner <nc-gaertnma at netcologne.de
> <mailto:nc-gaertnma at netcologne.de>>:
>
>
> Please test and tell what you find out.
>
>
>
> Without {$codepage utf8} directive String constants will get Code Page 0
> (CP_ACP) and not the 1200 (UTF16 - UnicodeString).
>
> String variables assigned to those constants will also have Code Page = 0
>
> This is because the constant string code page is evaluated at compile time
>
> Not sure if there's a compiler command line param with same effect as
> {$codepage utf8}
>
> The attached program show how data loss can occur
The command line parameter for this is -Fcutf8.
Regards,
Sven
More information about the Lazarus
mailing list