[Lazarus] Unicode (was Re: cwstring in arm-linux)
Michael Lutz
Michi_cc at gmx.net
Mon Oct 24 14:43:40 CEST 2011
Am 24.10.2011 12:15 schrieb Michael Schnell:
> On 10/21/2011 01:26 PM, Michael Lutz wrote:
>>
>> Ever heard of decomposed characters?
> Handling those in a computer program seems similar to having the
> computer understand a philosophical text.
So I guess a user wanting to enter 'e̊' in response to the prompt 'Please
enter a single character' is clearly crazy? Even if that isn't a character
in common natural languages, using it in a mathematical context for
example isn't strange at all.
Hint: The above character has *no* precomposed form (and is made up from
two code points), and a program that stores the response to such a prompt
into a single Char/WideChar/etc variable will just fail silently.
Michael Lutz
More information about the Lazarus
mailing list