[fpc-devel] Unicode support - for the 20th time... ;-)
Florian Klaempfl
florian at freepascal.org
Thu Nov 20 10:37:03 CET 2008
Graeme Geldenhuys schrieb:
> On Thu, Nov 20, 2008 at 11:12 AM, Florian Klaempfl
> <florian at freepascal.org> 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.
FPC supports Unicode, in 2.3.x is the UnicodeString type available being
a ref. counted utf-16 string on all platforms.
> 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
They add it only because they insist on using utf-8 :)
> 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 at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list