• 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 (was Run Script upon Waking? Solved!)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASCII (was Run Script upon Waking? Solved!)


  • Subject: Re: ASCII (was Run Script upon Waking? Solved!)
  • From: Chris Nebel <email@hidden>
  • Date: Sun, 02 Dec 2001 15:51:22 -0800
  • Organization: Apple Computer, Inc.

"Bob.Kalbaugh" wrote:

> I'm not sure how to interpret this definition from the
> Tex-Edit Plus Help Guide:
>
> ------
> ASCII...
>
> 0-31 (low ASCII) -- Control characters such as carriage return, tab,
> formfeed and linefeed.
>
> 32-127 -- Standard English characters, numbers and symbols.
>
> 128-255 (high ASCII) -- Special ornaments, curly quotes, accented letters
> with diacritical markings. These characters differ across various computer
> platforms.
>
> --End--
>
> Is this definition wrong? Misleading?
>
> Should I consider that the characters 128-255 that Tex-Edit displays are
> special entities exclusive to the Mac platform and not ASCII characters
> after all?

Strictly speaking, ASCII only defines characters with codes from 0 to 127. It
allows the eighth bit to be used for pretty much anything you feel like --
parity, highlighting, extra characters, etc. -- but doesn't specify anything.
As a result, people have been talking about "extended ASCII" and "high ASCII"
for so long that the idea that ASCII codes go up to 255 has become pretty well
entrenched [1, 2].

There are encodings that define codes 128-255, notably the ISO-8859 family, but
that's something else. Mac OS uses its own encoding (Mac Roman in your case)
which defines many of the same characters as ISO-8859-1, but in different
positions. Tex-Edit is still giving you useful information about what
characters are at what code points, but it's not really ASCII.


--Chris Nebel
AppleScript Engineering

[1] In other words, you're in wide company, so this doesn't qualify as an ID10T
error. (I had to look that one up.)

[2] I got all this from <http://czyborra.com/charsets/iso646.html> and
<http://czyborra.com/charsets/iso8859.html>. Scary stuff in places -- makes you
appreciate Unicode.


References: 
 >Re: Run Script upon Waking? Solved! (From: "Bob.Kalbaugh" <email@hidden>)

  • Prev by Date: Re: interesting discovery (trying to get record labels as strings)
  • Next by Date: Moving files in Mac OS X
  • Previous by thread: Re: Run Script upon Waking? Solved!
  • Next by thread: Tell default browser to open a URL
  • Index(es):
    • Date
    • Thread