• 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: Where is my bicycle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is my bicycle?


  • Subject: Re: Where is my bicycle?
  • From: Greg Parker <email@hidden>
  • Date: Mon, 06 Apr 2015 16:03:53 -0700

> On Apr 6, 2015, at 2:20 PM, pscott <email@hidden> wrote:
>
>> On 4/6/2015 12:29 PM, Greg Parker wrote:
>> I'm not an expert here, but my understanding is that when Cocoa says "character" it usually means "UTF-16 code unit". @"🚲".length == 2, for example. Cocoa's string API designed when Unicode was still a true 16-bit character set.
>
> That would be UCS-2 encoding. If the full Unicode character set of 1,112,064 characters isn't supported it should not be documented as supporting UTF-16.

No, it's not UCS-2. The API generally works as if it were manipulating an array of UTF-16 code units. @"🚲" displays correctly; it would not if the system were truly UCS-2.


--
Greg Parker     email@hidden     Runtime Wrangler



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Where is my bicycle? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Where is my bicycle? (From: Quincey Morris <email@hidden>)
 >Re: Where is my bicycle? (From: Greg Parker <email@hidden>)

  • Prev by Date: Getting two copies of my Today Extension
  • Next by Date: Re: Where is my bicycle?
  • Previous by thread: Re: Where is my bicycle?
  • Next by thread: Re: Where is my bicycle?
  • Index(es):
    • Date
    • Thread