15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The first 32 characters are control characters for ASC<strong>II</strong> devices like printers<br />

Motivated by punchcards: The character 0 (binary 000000) carries no information NUL,<br />

(used as dividers)<br />

Character 127 (binary 1111111) can be used for deleting (overwriting) last value<br />

(cannot delete holes)<br />

The ASC<strong>II</strong> code was standardized in 1963 and is still prevalent in computers today<br />

(but seen as US-centric)<br />

A Punchcard<br />

c○: Michael Kohlhase 125<br />

A punch card is a piece of stiff paper that contains digital information represented by the<br />

presence or absence of holes in predefined positions.<br />

Example 218 This punch card encoded the Fortran statement Z(1) = Y + W(1)<br />

c○: Michael Kohlhase 126<br />

The ASC<strong>II</strong> code as above has a variety of problems, for instance that the control characters are<br />

mostly no longer in use, the code is lacking many characters of languages other than the English<br />

language it was developed for, and finally, it only uses seven bits, where a byte (eight bits) is the<br />

preferred unit in information technology. Therefore there have been a whole zoo of extensions,<br />

which — due to the fact that there were so many of them — never quite solved the encoding<br />

problem.<br />

Problems with ASC<strong>II</strong> encoding<br />

Problem: Many of the control characters are obsolete by now (e.g. NUL,BEL, or DEL)<br />

Problem: Many European characters are not represented (e.g. è,ñ,ü,ß,. . . )<br />

European ASC<strong>II</strong> Variants: Exchange less-used characters for national ones<br />

Example 219 (German ASC<strong>II</strong>) remap e.g. [ ↦→ Ä, ] ↦→ Ü in German ASC<strong>II</strong><br />

(“Apple ][” comes out as “Apple ÜÄ”)<br />

68

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!