Pages

29.9.11

Data and processes in computing: 2 Forms of data: 2.2 Characters

2.2 Characters

Characters are another fundamental form of data. Computers store characters as integers, and system hardware and software translate these integer codes so that monitors and printers can display them.
As well as the familiar characters appearing on a keyboard, the current international standard (UNICODE) includes codes for characters from a variety of languages and alphabets (such as ê and ö). For simplicity, examples in this unit will use only a part of this code, as given in Table 2. This is confined to printable symbols that appear on a standard computer keyboard (for an English-speaking user).
We will denote by Char the set of characters appearing in Table 2. We will call the codes in the table the ASCII codes of the characters.

The original ASCII set (developed by ANSI, the American National Standards Institute) was finalised in 1968, and provides a basic (but by no means complete) character set for English. With the development of the Internet and a more global economy, efforts are being made to create a standard character set, catering more completely for many languages, and bringing together hundreds of incompatible standards from different countries. UNICODE is the result of this development, but it still only represents some of the written characters of our languages, currently standing at about 94,000 symbols. No existing character set caters for all languages.
Table 2: The ASCII encoding of characters (in part).
Code
Character
Code
Character
Code
Character
3264@96'
33!65A97a
34"66B98b
35#67C99c
36$68D100d
37%69E101e
38&70F102f
3971G103g
40(72H104h
41)73I105i
42*74J106j
43+75K107k
44,76L108l
4577M109m
46.78N110n
47/79O111o
48080P112p
49181Q113q
50282R114r
51383S115s
52484T116t
53585U117u
54686V118v
55787W119w
56888X120x
57989Y121y
58:90Z122z
59;91[123{
60<92\ 124|
61=93]125}
62>94^126˜
63?95


The character with ASCII code 32 is the space character, which, when we need to write it explicitly, will appear as ‘

Activity 4

(a) What character has ASCII code 91?
(b) What are the ASCII codes of the characters ‘A’ and ‘a’?
(c) What is the ASCII code of the character ‘7’?

Discussion

(a) The character ‘[’.
(b) 65 and 97, respectively.
(c) 55.
End of discussion

No comments:

Post a Comment