[Lazarus] String with °

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Oct 10 12:24:00 CEST 2013

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.


More information about the Lazarus mailing list