Re: non-ASCII characters in CFString literal [Was: (no subject)]
Re: non-ASCII characters in CFString literal [Was: (no subject)]
- Subject: Re: non-ASCII characters in CFString literal [Was: (no subject)]
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 11 Jul 2006 11:58:38 -0600
On Jul 11, 2006, at 10:40 AM, Antonio Nunes wrote:
Have a look at stringWithUTF8String
Example of use:
NSString *myString = [NSString stringWithUTF8String:"%ƒÂÚÂÎßÛ†–ƒ∆\n"];
Which, by the way, only works if the source file is being saved as
UTF-8 by the text editor. It'll most likely blow up if it's saved
using any other encoding. I think Xcode defaults to saving source
files using MacRoman. NSLocalizedString() or unichar arrays are
really the way to go to put non-ASCII characters into NSStrings.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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