• 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
How to code a NSString literal with UTF8?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to code a NSString literal with UTF8?


  • Subject: How to code a NSString literal with UTF8?
  • From: David Hoerl <email@hidden>
  • Date: Tue, 29 Mar 2005 22:17:55 -0500

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
_______________________________________________
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: Nicko van Someren <email@hidden>
    • Re: How to code a NSString literal with UTF8?
      • From: Satoshi Matsumoto <email@hidden>
  • Prev by Date: Re: NSButtonCell Ignores Button Type -- A Discovery and Annoyance
  • Next by Date: LSBackgroundOnly Cached?
  • Previous by thread: Re: Creating a "tool" in objective-C
  • Next by thread: Re: How to code a NSString literal with UTF8?
  • Index(es):
    • Date
    • Thread