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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
