[Lazarus] substr return wrong string with some utf8 char

Michael Schnell mschnell at lumino.de
Fri Feb 11 09:19:34 CET 2011


On 02/10/2011 03:20 PM, Hans-Peter Diettrich wrote:
>
>> length('à') return 2
>> utf8length('à') return 1
>
I thinks according to the definition of UTF8String it's correct that 
Length(s) provides the byte count. I do hope that with "NewStrings" this 
some day might change, as it's quite confusing for anybody who does not 
want to be bothered with the Uniocde internals.

-Michael




More information about the Lazarus mailing list