[Lazarus] String with °

Kamen Kamen kamenlist at abv.bg
Thu Oct 10 12:30:35 CEST 2013

 Thanks, Mattias!

-------- Оригинално писмо --------
От:  Mattias Gaertner  
Относно: Re: [Lazarus] String with °
До: lazarus at lists.lazarus.freepascal.org
Изпратено на: Четвъртък, 2013, Октомври 10 13:24:00 EEST

On Thu, 10 Oct 2013 11:38:39 +0200

Bart  bartjunk64 at gmail.com > wrote:

> On 10/10/13, Michael Schnell  mschnell at lumino.de > wrote:


> > As Lazarus works with UTF8, and the string functions like "pos" and

> > "delete" count bytes rather than (visible) characters, you can't use the

> > visible character position for these functions.


> As Mattias pointed out: in this case Use Utf8Delete().

> It is in LazUtf8 unit.

Note: UTF8Delete works in code points, not in visible characters.

The "visible characters" depend on font and rendering engine.




Lazarus mailing list

 Lazarus at lists.lazarus.freepascal.org 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131010/acbdc5d0/attachment-0003.html>

More information about the Lazarus mailing list