You are on page 1of 1

Ascii Codes Ascii Codes

Page 1 of2
Published by Juan Soulie Last update on Oct 9,2009 at ll:lSam UTe

It is a very well-known fact that computers can manage internally only Os (zeros) and 1s (ones). This is true, and by means of sequences of Os and 1s the computer can express any numerical value as its binary translation, which is a very simple mathematical operation (as explained in the paper numerical bases). Nevertheless, there is no such evident way to represent letters and other non-numeric characters with Os and 1s. Therefore, in order to do that, computers use ASCII tables, which are tables or lists that contain all the letters in the roman alphabet plus some additional characters. In these tables each character is always represented by the same order number. For example, the ASCII code for the capital letter "A" is always represented by the order number 65, which is easily representable using Os and 1s in binary: 65 expressed as a binary number is 1000001. The standard ASCII table defines 128 character codes (from 0 to 127), of which, the first 32 are control codes (nonprin a e), and the remaining 96 character codes are representable characters:

*
2 30 4@
SP 6 7p

B VT

o NUL SOH STX ETX EOT ENQ ACK BEL BS

TAB LF

FF CR SO SI

1 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FSGS RS US ( ) ! % & # $ + / " , ; < = > ? 1 2 3 4 7 5 6 8 9
A Q B R b C S D E U F V f v G
W

I y i

K ( k

T
d

x
h

z
j

J
)

.
-

a q

c s

e
u

9
w

1 m

* This panel is organized to be easily read in hexadecimal: row numbers represent the first digit and the column numbers represent the second one. For example, the "A" character is located at the 4th row and the 1st column, for that it would be represented in hexadecimal as Ox41 (65).

The two most used extended ASCII character sets are the one known as OEM, that comes from the default character set 1n1:Orporate y e ault in t e IBM-PC anOthe other is the ANSI extend ASCII which is used by most recent operating systems. . The first of them, the OEM character set, is the one used by the hardware of the immense majority of PC compatible machines, and was also used under the old DOS system. It includes some foreign signs, some marked characters and pieces to represent panels,-

OEM Extended AS en

a 1 2 3 4 5 6 7 8 9 A B C 0 E F 8 c u e a a it. 1l ~ e e e 1. 1. 1. A II 9 ~ ;., II 0 ij 0 0. U. jj ii U V ~ s , ~ ~ A a i 6 U fi N ,. ,. l. !.I ~ B ~ I !II 1 i ~ /I n ~ 11 II 11 C T ~ - + ~ II l! Ii !! ii I: = u ~ F n II 0 I I T n r


r-

11

.!.

Jl

11

.L

E a F -

p
:!:

r
1

n
.!.

(J

J.I

1: :::

!!
0

fI

.J'

'"
n
2

E I

The ANSI character set is a standard that many systems incorporate, like Windows, some UNIX platforms and many standalone applications. It includes more local symbols and marked letters so that it can be used with no need of being redefined in many more languages: '

man."

ANSI Extended ASCII (Windows)

a
8 9
A B
C
0 0

1 2 3 4 5 6 7 8 9 A B
0

C
<E

0 E F
0 0 0 0
@

,
i

, ,

:f "

" "

_.

- Jl

';.

, A

"
A

, ,
'I!
J!

e
E

.
U
e

s
ii

>

ce

,
0

~ ~ ~ c
t
ii
i
ii

A
I)

A
<5

c t
x

t
11

t
iJ
e U

t Y
i

i
p i

t
B i if

N 6 6 0 E a a a a F 05 Ii 6 6

0
if!

(21

a
6

e.
0

'<

e
u

'"

http://www.cplusplus.com/doc/ascii/

10/30/2009

You might also like