[Lazarus] UTF8 RTL for Windows

Sven Barth pascaldragon at googlemail.com
Mon Nov 24 07:36:29 CET 2014


On 24.11.2014 03:19, luiz americo pereira camara wrote:
> I updated the test app to show the hexadecimal representation of the string.
>
> When {$codepage utf8} is set, all string encoding and content is right
> matching each other regardless of MultiByteConversionCodePage
>
> Without {$codepage utf8}:
>
> When MultiByteConversionCodePage is CP_ACP (default) one string gets the
> UTF8 content but code page is system ansi (1252 in my case)
> When MultiByteConversionCodePage is UTF8 and two strings (converted from
> WideString) get code page UTF8 but content is wrong

Yes. $codepage is for the how the compiler parses the constants while 
MultiByteConversionCodePage is for the runtime behavior. In theory this 
is all documented at 
http://wiki.freepascal.org/FPC_Unicode_support#String_constants

Regards,
Sven





More information about the Lazarus mailing list