[Lazarus] TStrings, Windows and Unicode

Michael Schnell mschnell at lumino.de
Wed Oct 24 12:50:19 CEST 2012


On 10/24/2012 12:39 PM, Marc Weustink wrote:
>
> A stringlist is not LCL and it does not expect anything but strings
Yep

And, in fpc, String right now (by default) is a sequence of 8 bit units 
(e.g. UTF-8 coded, but they are often called "ANSIString", and thus 
locale based ANSI coding is used as well). This (with locale based ANSI 
is inherited from and compatible with pre-2005 Delphi.

I read discussions in the fpc devel mailing list that this might change 
to define String (by default) as a sequence of 16 bit units (e.g. UCS-2 
/ UFT-16 coded by default) and this upgrade to Delphi post 2005 
compatibility....



On 10/24/2012, J├╝rgen Hestermann wrote:
> That's very frustrating. 

... thus the frustration is bound to continue and increase.

-Michael





More information about the Lazarus mailing list