Unicode vs UTF-8
People think Unicode and UTF-8 are two names for one thing, and they are not. Unicode is the list that gives each character a number. UTF-8 is one rule for storing those numbers as bytes. So a file is never saved in Unicode alone. It is saved in UTF-8, or in another encoding of Unicode.
Unicode
One list that gives each letter in each language a number. Emoji too.
Unicode is a world standard. It gives every character its own number. It covers letters from almost every language, plus symbols and emoji. It now holds more than 150,000 characters. A character's number is its code point, written like U+0041 for A. Unicode only picks the numbers, and an encoding such as UTF-8 stores them as bytes.
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
- Unicode
- One list that gives each letter in each language a number. Emoji too.
- 8-bit Unicode Transformation Format (UTF-8)
- The code that nearly all sites use. It has each language and emoji.