[fpc-devel] Unicode and UTF8String

Yury Sidorov jura at cp-lab.com
Mon Dec 1 16:52:05 CET 2008


From: "Michael Schnell" <mschnell at lumino.de>
>> And yes, if you lazy, you lose performance due to automatic 
>> conversions. It
>> has always been that way (also when mixing short and ansistring)
>>
> Of course you are very right here !
>
> If you are lazy and write your code like you are used to, you will 
> not get optimum performance with a new compiler that now allows for 
> Unicode. But the code still needs to be working as expected (as with 
> a compiler version that does not allow for Unicode, but simply uses 
> ANSI or whatever OS and locale depending 8-Bit code).
>
> In most programs that will not be a problem at all as doing 
> extensive string calculations in user-code is not necessary.
>
> Of course, if you want to take real advantage of Unicode (using 
> characters outside your current locale) or if you want to optimize 
> (for speed or for memory size) you need to be aware of the Unicode 
> stuff and write your code appropriately.

It is planned to allow users to build ANSI version of RTL which will 
be fully compatible with existing user code.
But if you choose to use unicode RTL, you must keep in mind all 
unicode specific things...

Yury. 



More information about the fpc-devel mailing list