• 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: Converting Japanese C- string to NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting Japanese C- string to NSString


  • Subject: Re: Converting Japanese C- string to NSString
  • From: Darrin Cardani <email@hidden>
  • Date: Thu, 5 Feb 2004 11:17:17 -0600

At 2:02 AM -0800 2/5/04, email@hidden wrote:
How to convert C-string that contains japanese character to NSString?

Check out Carbon's text encoding converter. If the string is in a Japanese Mac encoding, you can create a Mac to Unicode converter and pass it the string. You can then put the Unicode bytes you get back into an NSString with

NSString* newString = [ NSString stringWithCharacters:macStr
length:numBytes ];

Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Converting Japanese C- string to NSString
      • From: John Stiles <email@hidden>
    • Re: Converting Japanese C- string to NSString
      • From: Aki Inoue <email@hidden>
  • Prev by Date: Re: Creating a window without IB
  • Next by Date: AddObect to NSTableView
  • Previous by thread: Re: Converting Japanese C- string to NSString
  • Next by thread: Re: Converting Japanese C- string to NSString
  • Index(es):
    • Date
    • Thread