[Lazarus] Removed use of UTF8String in Lazarus to work with cpstrnew

Sven Barth pascaldragon at googlemail.com
Tue Sep 20 14:41:56 CEST 2011


Am 20.09.2011 14:16, schrieb Michael Schnell:
> On 09/20/2011 01:09 PM, cobines wrote:
>> String=AnsiString(CP_UTF8),
> Meaning that a library function (or an FPC syntax candy feature) can't
> detect the code that is used for the string.

Huh? What do you mean here? If String is declared as a 
AnsiString(CP_UTF8) then the a variable declared as String does contain 
UTF8 data... and any code can detect that by using GetCodePage which 
will return CP_UTF8.

Regards,
Sven





More information about the Lazarus mailing list