Re: How to code a NSString literal with UTF8?
Re: How to code a NSString literal with UTF8?
- Subject: Re: How to code a NSString literal with UTF8?
- From: Satoshi Matsumoto <email@hidden>
- Date: Wed, 30 Mar 2005 13:06:23 +0900
In such cases, I will code like this...
NSString *foo = NSLocalizedString( @"blah blah", @"some comment" );
And then define the actual Unicode characters in the file
"Localizable.strings."
Satoshi
on 05.3.30 0:17 PM, David Hoerl at email@hidden wrote:
> The Xcode editor lets you define a file encoding as UTF8. You can
> then type in a line like:
>
> NSString *foo = @"blah blah";
>
> where blah blah have Unicode characters in them with encoded as UTF8.
>
> But, when I ask this string for its characters I get garbage back,
> and length is not correct.
>
> What would the best way to do this be?
>
> david
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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