2011/2/10 claude Pomalo <[email protected]>:
> hello
>
> i use the substr function to get some truncated string.
> these string are in french language  and sometimes contains "à" or "é" etc..
> char
> When these charaters are in the string the wrong substr is return
> substr (pierre à feu,11) return 'pierre à  f' not 'pierre à fr'
>
> length('à') return 2
> utf8length('à') return 1
>
> is a utf8Subst() like function exist?
>
>

http://lazarus-ccr.sourceforge.net/docs/lcl/lclproc/utf8copy.html

Vincent

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to