• 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 Encode the unicode to UTF-8 in cocoa.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to Encode the unicode to UTF-8 in cocoa.


  • Subject: Re: how to Encode the unicode to UTF-8 in cocoa.
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 23 Aug 2005 07:17:05 -0600


On Aug 23, 2005, at 7:00 AM, Ratan Bhangale wrote:

As Cocoa text classes support inline input and Unicode layout by default, I
want to encode it in UTF-8 format. Can any one tell me how to do it.

NSString et al. use UTF-16 internally and there's no way to change this. However, NSString does have methods that take in and return UTF-8 encoded data, +stringWithUTF8String: and -UTF8String. Please see the NSString documentation for more details.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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: 
 >how to Encode the unicode to UTF-8 in cocoa. (From: "Ratan Bhangale" <email@hidden>)

  • Prev by Date: Re: Code signing
  • Next by Date: Getting first responder state for a custom view enclosed in a NSTabView ?
  • Previous by thread: how to Encode the unicode to UTF-8 in cocoa.
  • Next by thread: Getting first responder state for a custom view enclosed in a NSTabView ?
  • Index(es):
    • Date
    • Thread