Answer the question
In order to leave comments, you need to log in
Is it necessary to use meta charset="UTF-8" on a page?
I see that layout designers often place this tag. Is it really necessary or is it just a form of protection?
If the file is saved in UTF-8 encoding and if the server is configured to return and the database returns UTF-8, should it be used?
Answer the question
In order to leave comments, you need to log in
You may not specify the encoding in the body of the document, but then you must specify it in the response header.
Here is a link that will answer your question, but in short, then: the server will not know in what encoding to give the content, which can lead to unreadable (for humans) characters.
If you do not specify, then in most browsers there will be no problem, but get used to writing correctly.
In general, if you do not specify the tag, the page will also be displayed, and problems will occur less likely than with unspecified meta tags, however, if you want to make it like a pro. then do it wisely.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question