[Lazarus] substr return wrong string with some utf8 char

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Feb 10 12:01:03 CET 2011


Op 2011-02-10 12:27, claude Pomalo het geskryf:
> 
> length('à') return 2

Length() returns bytes

> utf8length('à') return 1

this returns the number of visual characters.


> is a utf8Subst() like function exist?

utf8copy() somewhere in the LCL units.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list