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: Thu, 31 Mar 2005 09:18:56 +0900
On 2005-03-30, at 18.59, Ali Ozer wrote:
> One possible misconception people come away in these discussions is
> that you need to use NSLocalizedString() if you want NSStrings with
> non-ASCII characters.
I don't think it is misconception to use NSLocalizedString() for defining
none-ASCII characters in NSString.
As the encoding of "@"string" is 7-bit ASCII, if you want to define
none-ASCII characters, you do need to "localize".
> programmatically. One possibility here is:
> NSString *s = [NSString stringWithFormat:@"Long %C dash", 0x2014];
Please imagine that Japanese developers define all Japanese strings like
above.
If I don't need to localize to other languages, I always use
NSLocalizedString() to define Japanese strings.
Satoshi
-----------------------------------------------------
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