On Fri, Sep 26, 2008 at 5:02 PM, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > > s[i]:='x' doesn't work in UTF-8, nor UTF-16, nor UTF-32. > > In short: > A single character for all purposes can not be defined. Unicode can not > be handled as array of character.
This is what I thought, but everybody seems to side step the answer. Thanks Mattias for confirming this. Like I told Martin in one of my replies. In the last four years I have not needed indexing into a character array, and if I have to parse a string, it's normally sequential anyway, which is then easy to track each charter in UTF-8, even if multi-byte characters are used. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel