Re: (newbie question) Putting special characters in NSStrings
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