Re: NSString from Palm text?
Re: NSString from Palm text?
- Subject: Re: NSString from Palm text?
- From: Chris Ridd <email@hidden>
- Date: Thu, 09 Oct 2003 07:57:17 +0100
On 9/10/03 5:31 am, Nick Zitzmann <email@hidden> wrote:
>
On Wednesday, October 8, 2003, at 08:46 PM, Dave Riggle wrote:
>
>
> I need to exchange text with a Palm OS device. How do I translate
>
> between a (unicode) NSString and the following three character
>
> encodings?
>
>
>
> 1. MS code page 1252 for EFIGS devices
>
>
NSData *windowsText = [string
>
dataUsingEncoding:NSWindowsCP1252StringEncoding];
Palm doesn't use CP1252 on EFIGS machines, they use a variant of it.
Similarly the Japanese ROMs use a variant of CP932. I don't know what
Chinese ROMs use, but the odds are good that they'll use a variant of
something else :-(
See <
http://www.df.lth.se/~triad/krad/recode/palm.html> for more details.
There are some freely available bi-directional converters to/from NSString -
see <
http://sourceforge.net/projects/osx-palm-tools>
Cheers,
Chris
_______________________________________________
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.