FROM : Nick Zitzmann
DATE : Tue Jul 11 19:58:38 2006
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/>
DATE : Tue Jul 11 19:58:38 2006
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/>
| Related mails | Author | Date |
|---|---|---|
| Antonio Nunes | Jul 11, 18:40 | |
| Nick Zitzmann | Jul 11, 19:58 | |
| D.K. Johnston | Jul 12, 00:24 | |
| Tony Cate | Jul 12, 00:43 | |
| j o a r | Jul 12, 01:05 |






Cocoa mail archive

