• 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: ASCII problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASCII problem


  • Subject: Re: ASCII problem
  • From: Andrew Thompson <email@hidden>
  • Date: Thu, 2 Jun 2005 12:40:57 -0400


On Jun 2, 2005, at 11:55 AM, Will Mason wrote:

If it must be text and they don't tell you the encoding of the data
they're sending, then you're left guessing. NSString is not capable of
guessing the encoding.

I agree with what Will was saying about assuming it's binary data.

Assuming it is textual data and not binary data, there are 3 likely encodings they could be using.

All of these are identical to ASCII from 0-127 but they encode 128-255 differently.

MacRoman (high unlikely unless this is mac specific hardware)
ISO 88059-1 (aka Latin 1)
Windows Code Page 1252 (very similar to Latin 1, but not identical).

Of course, it could be something much more obscure, especially if it is made for non English speaking markets.
What you really need is documentation - but you could look at the output and see if any of the above make sense.


AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

        (see you later space cowboy ...)

_______________________________________________
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: 
 >Re: ASCII problem (From: Will Mason <email@hidden>)

  • Prev by Date: Re: Manual KVO and will/didChangeValueForKey
  • Next by Date: Re: mutableSetValueForKey:, addObject:, and selector not found [RESOLVED]
  • Previous by thread: Re: ASCII problem
  • Next by thread: Re: ASCII problem
  • Index(es):
    • Date
    • Thread