• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: controlTextDidChange, backspace possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: controlTextDidChange, backspace possible?
      • From: Clark Cox <email@hidden>
    • String encoding details was: controlTextDidChange, backspace possible?
      • From: Andreas Mayer <email@hidden>
References: 
 >controlTextDidChange, backspace possible? (From: "Peter Karlsson" <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: j o a r <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: Frederick Cheung <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: Andreas Mayer <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: Frederick Cheung <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: [Newbie]:Bindings and pulldown menus
  • Next by Date: Re: Distributing vs. re-using source code?
  • Previous by thread: Re: controlTextDidChange, backspace possible?
  • Next by thread: String encoding details was: controlTextDidChange, backspace possible?
  • Index(es):
    • Date
    • Thread