This document describes how to interpret ASCII codes used for computer processing and display. For codes used in Web pages see link at bottom. ASCII Characters For Computers (Pronounced "ask-ee") ASCII = American Standard Code for Information Interchange Now that you ASCII, its ANSI Computers are dumber than dirt. The only information (characters and numbers) computers can recognize (understand) consist of exactly two digits: 0 (zero) and 1 (one). In computers, 0s and 1s are called "bits." To represent the alphabet (a-z & A-Z), numbers (0-9) and special characters (i.e., "@,#,$" etc.) groups of bits are used. A group of bits is called a "byte" (pronounced "bite") and is stored, computed and processed as a group of eight bits. Computers require a separate group of bits for each character, or byte. It's a great help to think of a byte as a computer memory storage space even though each logical space really consist of 8 physical spaces. The value for each byte can range from a low of "00000000" to a high of "11111111." Each byte is considered logically as a single unit of data and is called a [pick one], an ANSI character, an ASCII character or a byte. Within the ANSI - ASCII - byte scheme, one logical computer memory space can hold enough permutations for a single byte to have any value from "0" to "255." The range is enough to represent any letter of the alphabet in either upper and lower case, any of the ten decimal numbers 0-9, or any special character, i.e., -- ~!@#$%^&*", etc. [0-255 is also enough range to represent the alphabets of all other languages: Chinese, Russian, Greek, etc.] To decipher a value (0-255) stored in a single byte/space, the representation can be displayed or printed in different forms. [REMEMBER: ALL information is STORED in the form of "0"s and "1"s.] Common formats for display and print of recognizable, eye readable information are DECIMAL, HEXADECIMAL (HEX), BINARY and OCTAL. OCTAL is rarely used so I'll just ignore it from here forward. [NOTE: pcDon says it "in other words." See below.] DECIMAL, the base-ten system we use: 0,1,2,3,4,5,6,7,8,9 for numbers, and HEXADECIMAL: Base-16 system used in computers. Rendered eye readable by breaking each byte into two four-bit groups and using decimal digits and alpha characters to display the results. Single HEX values are displayed as BINARY: Base-two, 0 and 1. In the binary system: 1 plus 1 = (2)10, or (binary)10 which is decimal 2. In Standard ASCII code there are 128 characters (0 thru 127), of which, the first 32 "characters" are "hidden" control characters (non-visible on a computer monitor and non-printable EXCEPT in HEX), and the other 96 are representable characters that we are accustomed to seeing. These were the true ASCII codes before the geeks started mis-naming the scheme. Here's what the 128 characters look like to the human eye (green characters are not visible but are included FYI): Standard ASCII
* The table is DECIMAL (i.e., characters appear normally) but is organized to be read in hexadecimal: Row numbers [down] represent the first half of a HEX value and column numbers [across] represent the second half of a HEX value. For example, the uppercase A is located at row 4 and column 1. Therefore, an upper case A in HEX would be 41. Said another way, if I say "the value is HEX 41" I'm saying the value is uppercase A. But the proper way to write HEX 41 is: 0x41 (65), where "0x" means it's a HEX number, 41 is the row and column [value], and (65) means it is the 65th ASCII character in the 0-127 list. -- BTW: Lowercase a in HEX is 0x61(97). FYI, 'control character' means such things as 0x00(0) = NUL (NULL) which is useful to computers and programmers but humans have no need to know, OR 0x04(4) = EOT which is 'End of Transmission' code in telecommunications, OR 0x0d(13) = CR which is 'Carriage Return'. BTW: Be carefull not to confuse 0x0c(12) = FF in the table -- which means 'Form Feed' -- with HEX value "255" (0xff) which was discussed above and is illustrated below. In standard everyday DECIMAL base-ten system: 0 thru 9 is the standard for numbers. Ergo, 9 plus 1 = 10 or ten. -- In HEXADECIMAL the base is 16: 0-9,A-F. The eyeball representation is 0-9, a, b, c, d, e, f [upper-lower case makes no difference]. Ergo, in HEX, F or f plus 1 produces a zero in the units position with a 1 carry to the left. Result: 0x10 or sixteen, meaning its a hex number (0x) with the right-most position value of "0" and the position to the left value "16". Here's a quick converter to help get from one value to another. (Works for: MSIE 4+ -- FireFox 1.0+ -- Netscape 3+) In addition to the 128 ASCII codes above, there are another 128 codes that are known as Extended ANSI but some folks call them Extended ASCII. Whatever. The scheme is platform-dependent so there is more than one Extended ANSI / ASCII character set.
EBCDIIC coding scheme: Standard ANSI (or ASCII. Repeat of table above.)
NOTE: The symbol or is displayed on moniters and printers when the code in a byte can't be translated into a standard symbol. Programmers call the results "unprintable characters." To see the actual bit configuration of such bytes, programmers rely on "hex dumps" or displays and printouts in hexadecimal format. As promised above, notice that HEX value 255 (ff or FF) as shown in row F, column F of Extended ASCII. Its really unprintable (prints as a duplicate of other characters, i.e., 9f) in a single character space print out. Programmers often call "ff"'s null characters. Also note, in print outs and displays on monitors, values using a single space where HEX characters are needed will change with different ISO character sets. For platforms other than IBM, Windows, and most Unix, you need to search the Net to find the applicable Extended ASCII codes.
-- Codes for numbers, alphabet and special charaters >> as INPUT via Web pages. -- Computer Code Lookup Table >> -- More on EBCDIIC >>
In other words... from pcDon: What does "digit" mean, as in "digital photography? Well, "numbers" are often referred to as "digits" and computers only understand two digits: "zero" (0) and "one" (1). Everything that goes into a computer is eventually broken down into a "binary code" which consists of nothing but zeros and ones. The letter A, for instance, is represented by 01000001, while 01100001 is the binary code for a lower case a. The math that goes into these mysterious algorithms is beyond the scope of this tutorial, but looking up "binary code" via a search engine will lead to all kinds of information on the subject. These ones and zeros are known collectively as "bits." However, the word "bit" is also a name for the tiny colored squares that comprise a "bitmap" image, ie: "bits" that have been "mapped" on a computer screen to give the appearance of continuous tone color gradients.
The word "bit" is also used to help describe certain types of digital technology, and almost always appears as a number which is a successive doubling of "1" - ie: 2, 4, 8, 16, 32, 64-bit operating system, etc. It's another term which is seldom needed in a beginning PC user's list of helpful phrases.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All rights reserved. |