• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to code a NSString literal with UTF8?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: How to code a NSString literal with UTF8? (From: j o a r <email@hidden>)

  • Prev by Date: Re: NSCopying is manual labor
  • Next by Date: Re: Punch a hole through a window other than your own?
  • Previous by thread: Re: How to code a NSString literal with UTF8?
  • Next by thread: Re: How to code a NSString literal with UTF8?
  • Index(es):
    • Date
    • Thread