Re: controlTextDidChange, backspace possible?
Re: controlTextDidChange, backspace possible?
- Subject: Re: controlTextDidChange, backspace possible?
- From: Frederick Cheung <email@hidden>
- Date: Wed, 15 Sep 2004 03:11:52 +0200
On 15 Sep 2004, at 02:51, Andreas Mayer wrote:
Am 15.09.2004 um 02:24 Uhr schrieb Frederick Cheung:
Surrogate pairs.
I guess I have to do some reading on that. What are those used for?
16bits isn't actually enough to encode all unicode characters. There is
a 32 bit quantity which is a Unicode scalar value which can hold any
unicode character, but it's a bit overkill hauling 4 bytes around all
the time. Any character whose unicode scalar value is > 0xFFFF is
represented as a surrogate pair. You can see some if you open the
character palette and scroll down far enough.
There can also by funky stuff like é (e acute accent if the list
mangles this) can be encoding as 2 characters, deleting one of them
will produce a slightly odd string.
Well, yes - but not an illegal one, right?
I'm not 100% sure if it's nonsensical or illegal.
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden