[fpc-devel] Unicode conversion routines
Graeme Geldenhuys
graemeg.lists at gmail.com
Sun Nov 23 09:21:09 CET 2008
On Sun, Nov 23, 2008 at 1:50 AM, JoshyFun <joshyfun at gmail.com> wrote:
>
> Not checked right now, but as no valid sequences, no surrogates
> support.
So UTF8Decode only supports UCS2 output! Now this is why I think
supporting UTF-8 in fpGUI and Lazarus LCL was a good idea. By design
(utf-8), you have to support the whole unicode range. With UTF-16,
many people take shortcuts and actually only support UCS2 - and it
goes unnoticed like this case for many years!
I'm busy writing unit tests for all the conversion functions and
implementing some new helper functions as well. Hopefully this will
highlight all the UCS2 shotcuts in UTF-16 implementation and other
possible conversion issues.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-devel
mailing list