<HTML><BODY>
Thanks, Martin!<br><br><br><br><br>-------- Оригинално писмо --------<br>От: Martin <lazarus@mfriebe.de><br>Относно: Re: [Lazarus] StrLen<br>До: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org><br>Изпратено на: Вторник, 2012, Ноември 20 00:11:45 EET<br><br><br>On 19/11/2012 21:38, Kamen Ketev wrote:<br>
><br>
> Hi,<br>
><br>
> When I am using StrLen or Length or StrCharLength for counting symbols <br>
> on latin everything is ok. But when count cyrillic symbols is NOT <br>
> count properly. How I can count cyrillic symbols in string?<br>
><br>
><br>
<br>
Utf8Length<br>
<br>
However strictly spoken afaik it counts codepoints.<br>
<br>
Some chars are combined of multiply codepoints (see wikipedia utf8 <br>
combining).<br>
<br>
And on top of that, this does not tell anything about what you see on <br>
display. In some scripts two chars are displayed as one symbol (ligature)<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="../servlet/sendmess?ac=sab&to=Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</lazarus@lists.lazarus.freepascal.org></lazarus@mfriebe.de></BODY></HTML>