- Allow the browser to choose the right character encoding to display the page.
- Improve the way content is taken into account by search engines and indexing tools.
charset parameter of the HTTP header content-type is completed in the following way:
Content-Type: text/html; charset=utf-8 (utf-8 here is an example), depending on the character set actually used by the document and its MIME type.
For each page checked:
- Check that
charsetis in the content-type field returned by the server using a dedicated tool;
- Check that the declared character set actually corresponds to the character set used by the document. If there are incorrect characters instead of accents or the like, best practice will certainly be invalidated.