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

cobines cobines at gmail.com
Mon Sep 19 12:32:07 CEST 2011


Thank you, I think I understand it now. Currently in Lazarus String =
AnsiString and by default it has DefaultSystemCodePage. If I use
UTF8String type than it is AnsiString(CP_UTF8). So, to avoid
conversions, which Lazarus does not want, I also need to remove usage
of UTF8String from my application.

My confusion was caused by the fact that Lazarus uses AnsiString with
default system code page but inside it always stores UTF-8, sort of
fooling the compiler. Is this correct? If so, is it not possible to
set Lazarus to use String=AnsiString(CP_UTF8) by default?

--
cobines




More information about the Lazarus mailing list