• 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: NSString from Palm text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSString from Palm text? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: DO: Setting Protocol before leaving server...
  • Next by Date: Re: Closing Distributed Object connections
  • Previous by thread: Re: NSString from Palm text?
  • Next by thread: Releasing question
  • Index(es):
    • Date
    • Thread