• 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: C++ string and UTF8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ string and UTF8


  • Subject: Re: C++ string and UTF8
  • From: "R. Scott Thompson" <email@hidden>
  • Date: Wed, 13 Apr 2005 20:45:07 -0500


On Apr 6, 2005, at 7:48 PM, Julien Palmas wrote:

I am not really used to the C++ libraries, so that might be quite easy.
Still, I didn't find much information on internet.

I have a c++ string containing UTF8 data.
I would like to make a NSString out of it.
Obviously, the c_str() method will not work as I will lose all the non ascii characters.

How about

+ (id) stringWithUTF8String:(const char *)bytes

(Search the headers man!)

Scott

 _______________________________________________
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: 
 >C++ string and UTF8 (From: Julien Palmas <email@hidden>)

  • Prev by Date: Re: Cocoa from C++ (dont want to mix it)
  • Next by Date: Re: Simple question about NSTableView grid...
  • Previous by thread: Re: C++ string and UTF8
  • Next by thread: Re: C++ string and UTF8
  • Index(es):
    • Date
    • Thread