Text: ASCII and Unicode

Robusta Study

Revision videos, vocabulary practice and written questions for IGCSE.

Text: ASCII and Unicode

Character sets give every character a code. ASCII's 128 codes, Unicode's millions, and the storage trade-off.

Transcript

Computers store text as numbers. A character set gives every character its own code, and that code is stored in binary.

ASCII uses seven bits, giving one hundred and twenty eight codes: letters, digits, punctuation and control characters. Extended ASCII uses eight bits, giving two hundred and fifty six.

In ASCII, capital A is sixty five, and B is sixty six. The codes follow the alphabet. Lower case a is ninety seven, and the digits start at forty eight.

ASCII only has room for the basics. Other alphabets, symbols and emoji need more codes. Unicode solves this by using more bits for each character.

Unicode can use up to thirty two bits per character, so it can represent over a million characters. The first one hundred and twenty eight are the same as ASCII.

The trade off is size. Each character takes more bits, so the same text needs more storage space in Unicode than in ASCII.

A character set turns characters into codes. ASCII is small and simple, and Unicode is bigger, and covers the world.

More in this series