Re: ASCII problem
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