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