On Thu, Nov 20, 2008 at 11:12 AM, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > Ok, two questions for the example above: > - how do you maintain backward compatibility? > - how do you load a plain old ansi file?
If the file is UTF-8 or ANSI, the above should work. UTF-8 was designed to be backward compatible with ANSI. One of the beauties of UTF-8. But yes, with other encodings it's a problem. And exactly the reason I think TStrings and the whole FPC for that matter should start supporting Unicode somehow. And that's why I urge all core FPC developers to try and finalize a Unicode design. Otherwise you leave it up to developers to keep adding such shitty hacks which could cause more issues in the long term - instead of solving issues. 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