Re: Converting Japanese C- string to NSString
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.