UTF-8
PronunciationYOO-TEE-EF AYT
Definition
UTF-8 is the most common way to store Unicode text as bytes. It uses one byte for basic English letters and more bytes for other characters.
Where you hear it
When saving or reading text files, setting a database or web page encoding, and fixing garbled Arabic.
Examples
Always open the file with
encoding="utf-8".The response header declares the charset as UTF-8.
The file is saved as UTF-8, so the Arabic names display correctly in every editor.
Common mistake
Relying on the system's default encoding. On some machines it is not UTF-8, so Arabic text breaks.
Don't confuse with
Unicode itself, which is the list of characters rather than how they are saved.
Say it at work
- In a meeting or chat
Set the encoding to UTF-8 on both the file and the database.
- In an email or ticket
The Arabic turns into question marks because the file isn't saved as UTF-8.
Keep exploring
More in Programming Fundamentals