Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
- Subject: Re: [CocoaProgrammingForAbsoluteBeginners] Accessing 8-bit bytes from a file using Cocoa
- From: Paul Lynch <email@hidden>
- Date: Mon, 1 May 2006 21:03:36 +0100
On 1 May 2006, at 21:01, Uli Kusterer wrote:
Am 01.05.2006 um 14:29 schrieb Paul Lynch:
you have assumed that your data is old style ascii, and have
discovered by accident that even plain ascii can have many
different encodings.
That's nonsense. ASCII is an encoding, and it can't "have many
different encodings". That would be like saying that pure red can
be certain shades of green.
As Sherm alluded, ASCII is defined as a certain set of 128
different characters (numbered from 0 to 127). There are many
encodings that start with the same 128 characters but also allow
different characters. The most common of these are ISO Latin-1 and
Windows Latin-1. Those fill all 256 possible characters. A very
common one on the Mac is MacRoman, which also matches the others in
the first 128 characters, but then contains different ones in the
ones that have the high bit set.
So, unless or until you know what encoding your text is in, you
won't be able to make much sense of it.
That's the long version of what I wrote.
Paul
_______________________________________________
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