Op Sat, 19 May 2007, schreef Graeme Geldenhuys:
> Does FPC have UTF-8 versions of the Copy() and Length() functions?
They don't exist. FPC has been designed to either use the system encoding
(which can be utf8). In this case, the string routines from sysutils do
what you want. The other option is to use widestrings;
length(utf8decode(s)) will return the length of an utf-8 string.
Daniël
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal