• 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: (newbie question) Putting special characters in NSStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (newbie question) Putting special characters in NSStrings


  • Subject: Re: (newbie question) Putting special characters in NSStrings
  • From: Nicko van Someren <email@hidden>
  • Date: Mon, 21 Mar 2005 17:14:55 +0000

On 21 Mar 2005, at 16:18, Sean McBride wrote:

But anyway, I wonder, why is it not allowed? It sounds like some kind of
archaic holdover. especially since, as you say, you can do this:


[NSString stringWithUTF8String: "±§£€"];

I suspect it has to do with the same issue that lead both Clark and me to place a caveat on the above command; it's correct functioning depends on knowing that the file encoding is UTF-8. If you save the file in the wrong encoding then all sorts of strange things can happen and gcc will get quite upset (I suspect if you save your source as UTF-16 it won't compile at all).


Incidentally, Universal Character Names (UCNs) are supported in gcc 4.0, which Apple has (publicly) said will be in the Xcode 2.0 release for Tiger.

	Cheers,
		Nicko

_______________________________________________
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


References: 
 >Re: (newbie question) Putting special characters in NSStrings (From: Clark Cox <email@hidden>)
 >Re: (newbie question) Putting special characters in NSStrings (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: [OT] Application ideas
  • Next by Date: Re: [OT] Application ideas
  • Previous by thread: Re: (newbie question) Putting special characters in NSStrings
  • Next by thread: Re: (newbie question) Putting special characters in NSStrings
  • Index(es):
    • Date
    • Thread