why we write meta charset utf8 when we write html code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why we write meta charset utf8 when we write html code?

7th Jan 2017, 12:45 PM
Raghab Pokhrel
Raghab Pokhrel - avatar
1 Answer
+ 1
It is because characters have different ways to be encoded in binary. If you do so, Firefox (or any other) will know how to encode them. If you do not do so, they might end up being encoded with another method and that explain why you often find issues like "é" being changed as "é" (I am French).
7th Jan 2017, 12:56 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar