CalculateQuestion 1 · Recall
Loading…
By the end you can write text in its internal binary form for a given character set, and compare ASCII, extended ASCII and Unicode.
A computer can't store the letter "A" as a shape. Instead, every character is given a unique number, its character code, and text is stored as a sequence of those codes in binary.
Type a character, and its code is what gets stored. Display text, and the computer looks up which symbol each code stands for. Like two spies sharing a codebook, both sides must use the same table: the character set.
Character set
The complete set of characters that a computer can represent, together with the unique binary code assigned to each one.
| ASCII | Extended ASCII | Unicode | |
|---|---|---|---|
| Bits per character | 7 | 8 | up to 32 (1 to 4 bytes, depending on the encoding) |
| Number of codes | over a million possible (1 114 112) | ||
| Covers | English letters, digits, punctuation, control codes | ASCII plus 128 more: accented letters, symbols | virtually every writing system, plus maths symbols and emoji |
U+ and the number: U+0041 is A, U+00E9 is é.The cost: Unicode characters can take more storage than ASCII ones (up to 4 bytes instead of 1).