Characters can also be represented in binary. Characters are usually grouped together in a character set. A character set includes:
ASCII uses 8 bits to represent a character.
However, one of the bits is a parity bit. This is used to perform a parity check (a form of error checking). This uses up one bit, so ASCII represents 128 characters (the equivalent of 7 bits) with 8 bits rather than 256.
For example, the ASCII code for lower case z is 122 and is shown below:
It is possible to disregard the use of a parity bit to allow ASCII to represent 256 characters. This is known as extended ASCII. There are different versions of extended ASCII in use.
The 128 or 256 character limits of ASCII and Extended ASCII limits the number of character sets that can be held. Representing the character sets for several different language structures is not possible in ASCII, there are just not enough available characters.
Unicode was created to allow more character sets than ASCII.
Unicode uses 16 bits to represent each character. This means that Unicode is capable of representing 65,536 different characters and a much wider range of character sets.