What is UTF-8?

UTF-8 is the most common way to store text as bytes, able to represent every character from English letters to Hindi and emoji.

ASCII characters use one byte, while others use two to four. Always declare UTF-8 for web pages and files so that characters do not turn into garbled text.

If you see strange symbols like “’” instead of an apostrophe, a file saved as UTF-8 is being read with a different encoding. Setting the correct charset fixes it.

← All terms

↑ ↓ navigateEnter openEsc close