What exactly is work of <meta charset ="UTF-8"> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What exactly is work of <meta charset ="UTF-8">

1st Aug 2021, 3:07 PM
Crystal Princess
2 Answers
+ 4
Simply put, when you declare the "charset" as "UTF-8", you are telling your browser to use the UTF-8 character encoding, which is a method of converting your typed characters into machine-readable code.
1st Aug 2021, 4:35 PM
IMAN
IMAN - avatar
+ 5
Expand what IMOCO said, some characters are not supported to print in the browser by default. For example, Chinese, Japanese, many other languages and special symbols. To make those characters printed correctly we need to define the charset explicitly. Although it's not always the case, adding this line doesn't hurt anyway.
1st Aug 2021, 5:33 PM
你知道規則,我也是
你知道規則,我也是 - avatar