ASCII & Unicode

ASCII and Unicode are standards that assign a number to each character so computers can store text. ASCII covers basic English; Unicode covers virtually every language and emoji.

General Programming

ASCII uses one byte and represents 128 characters. Unicode extends this to over a million code points, letting computers handle accents, non-Latin scripts, and symbols consistently.

Examples

Python

print(ord("A"))   # character to number
print(chr(97))    # number to character

Output:

65
a

See also

Back to the Dictionary