Thanks, Mattias!
-------- Оригинално писмо -------- От: Mattias Gaertner Относно: Re: [Lazarus] String with ° До: lazarus@lists.lazarus.freepascal.org Изпратено на: Четвъртък, 2013, Октомври 10 13:24:00 EEST On Thu, 10 Oct 2013 11:38:39 +0200 Bart bartjun...@gmail.com > wrote: > On 10/10/13, Michael Schnell mschn...@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. Mattias -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus