Why is UTF-8 widely used?
The short answer
UTF-8 can represent letters, Japanese characters, emoji, and many other symbols in one widely supported encoding.
How it works
Characters and the encoding that turns them into bytes are different things. If the settings do not match, mojibake can appear.
A familiar example
UTF-8 does not guarantee correct display in every old program; compatibility still matters.