ASCII vs UTF-8
People think every plain text file is ASCII, and it is not. ASCII has only 128 codes, for basic English letters, digits and signs. UTF-8 can store every character in every language, plus emoji. Its first 128 codes are the same as ASCII, so plain English text is both. Add one é or one emoji, and the file is UTF-8, not ASCII.
American Standard Code for Information Interchange (ASCII)
An early code that numbers 128 English letters, digits and symbols. Capital A is 65.
ASCII is an early code that gives a number to each English letter, digit and symbol. It has 128 codes, from 0 to 127. Capital A is 65, and a space is 32. Some codes are not letters but signals, like a new line. ASCII only covers basic English. Unicode came later to cover every language, and its first 128 codes match ASCII.
8-bit Unicode Transformation Format (UTF-8)
The code that nearly all sites use. It has each language and emoji.
UTF-8 is the character encoding used by almost every web page and modern system. It can store every letter of every language, plus emoji. Plain English letters take 1 byte each, so old English text is still valid. Other letters take 2, 3 or 4 bytes. If you are asked to pick an encoding, UTF-8 is the safe answer.
In one line
- American Standard Code for Information Interchange (ASCII)
- An early code that numbers 128 English letters, digits and symbols. Capital A is 65.
- 8-bit Unicode Transformation Format (UTF-8)
- The code that nearly all sites use. It has each language and emoji.