Forum Moderators: mack
[edited by: phranque at 7:09 pm (utc) on Jun 13, 2017]
[edit reason] exemplified domain [/edit]
[edited by: DChan at 6:15 pm (utc) on Jun 13, 2017]
I am not sure where to find that info.
Instead of:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
I should have:
<meta charset= "UTF-8">
AddDefaultCharset utf-8*Unless of course some of your pages require a different language. *Unless of course some of your pages require a different language.
AddDefaultCharset should only be used when all of the text resources to which it applies are known to be in that character encoding and it is too inconvenient to label their charset individually.
Dunno about others, but the w3 validator doesn't care* about charset.Yes it does. If it doesn't find a charset declaration in the page mark-up it gives this warning (not an error however):
No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.So what I said above is, pay no attention to that warning and just set it in the headers site-wide via htaccess. However if you allow your pages to be downloaded and saved on the user's machine, it might help to have the charset declaration on the page in case some program needs it to render the page.