On Fri, Sep 26, 2008 at 11:46 AM, Martin Schreiber <[EMAIL PROTECTED]> wrote: > It seems you prefer utf-8 over utf-16 for internal string encoding in a GUI > framework. Why? > I prefer utf-16 over utf-8 for MSEide+MSEgui because *all* current users > (including the Chinese) can use simple string index to access the characters > of their used languages and almost nobody can use string index to access > characters in utf-8.
In my years of experience, string index access is not a requirement. In the last four years working on our current project I have still not had a need for string index access. It's a overrated statement as far as I'm concerned. UTF8CharAtByte() or UTF8Copy() if needed is fine for me. And if you are parsing a string, it happens sequentially anyway, so it's very easy to track characters in a utf8 string. 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