What exactly is work of <meta charset ="UTF-8"> | Sololearn: Learn to code for FREE!

+5

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

8/1/2021 3:07:25 PM

Crystal Princess

2 Answers

New Answer

+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.

+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.