• 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: How to get array of characters from NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get array of characters from NSString


  • Subject: Re: How to get array of characters from NSString
  • From: "Kyle Sluder" <email@hidden>
  • Date: Tue, 12 Aug 2008 12:57:50 -0400

On Tue, Aug 12, 2008 at 12:13 PM, Deborah Goldsmith <email@hidden> wrote:
> That article is missing several concepts which are essential for
> understanding Unicode; like many programmers, Mr. Spolsky thinks of Unicode
> as "wide ASCII", which it is not. The article doesn't cover surrogate pairs
> (the fact that he uses the term UCS-2 instead of UTF-16 shows he's not up to
> date) or combining sequences (grapheme clusters). If you're going to go
> groveling through Unicode text, you need to understand both.

He uses UTF-16 as well.  I don't think that he doesn't understand
surrogate pairs or otherwise treats Unicode as wide ASCII.  In fact, I
think the main point of the article was to drive home the point that
the simple 1:1 mapping of glyphs to bytes that ASCII exhibits isn't
even a valid concept in the world of Unicode, and gave a primer on why
this is the case.  Hence the "Absolute Minimum" part of the title.

> This article is a bit stuffy, but also more complete, and is even shorter (I
> think):
>
> http://unicode.org/standard/principles.html
>
> This is also good:
>
> http://icu-project.org/userguide/unicodeBasics.html

Of course these have the added benefit of being more likely correct,
since their authors work on Unicode or software implementations.  :)

I didn't mean to tread on your toes here, I just find that Joel's
article is a very good way to quickly get programmers to understand
that Unicode is a very different beast, and that it really does
matter.

--Kyle Sluder
_______________________________________________

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: 
 >How to get array of characters from NSString (From: "SridharRao M" <email@hidden>)
 >Re: How to get array of characters from NSString (From: Phil Faber <email@hidden>)
 >Re: How to get array of characters from NSString (From: Deborah Goldsmith <email@hidden>)
 >Re: How to get array of characters from NSString (From: "Kyle Sluder" <email@hidden>)
 >Re: How to get array of characters from NSString (From: Deborah Goldsmith <email@hidden>)

  • Prev by Date: Re: Use of AppKit in command-line app on headless node
  • Next by Date: Re: I don't understand why this is leaking...
  • Previous by thread: Re: How to get array of characters from NSString
  • Next by thread: Re: How to get array of characters from NSString
  • Index(es):
    • Date
    • Thread