• 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: 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

  • Follow-Ups:
    • Re: How to code a NSString literal with UTF8?
      • From: Ali Ozer <email@hidden>
References: 
 >How to code a NSString literal with UTF8? (From: David Hoerl <email@hidden>)

  • Prev by Date: Re: LSBackgroundOnly Cached?
  • Next by Date: Re: Overlapping NSMovieViews step on each other
  • Previous by thread: How to code a NSString literal with UTF8?
  • Next by thread: Re: How to code a NSString literal with UTF8?
  • Index(es):
    • Date
    • Thread