[fpc-devel] Unicode support (yet again)
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Sep 15 11:06:15 CEST 2011
On 15/09/2011 09:53, Michael Schnell wrote:
> If not strings, Chars do:
>
> MyString := 'Öse';
> MyChar := MyString[1];
and to show you AGAIN how flawed your "direct index access to a
character" example is. How is that 'Öse' entered into the system.
Is the Ö a
U+00D6 LATIN CAPITAL LETTER O WITH DIAERESIS
or
U+004F LATIN CAPITAL LETTER O with
U+0308 COMBINING DIAERESIS
or
what if the Ö was a "character" above the BMP. MyChar would only hold
the first part (2 bytes) of a surrogate pair (4 bytes).
Oops! You are thinking in terms of ANSI, *not* Unicode.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
More information about the fpc-devel
mailing list