Picto thématique

Rule n° 221 - Headers sent by the server contain information pertaining to the character set used

A web server will serve up loads of information in so-called headers (headers). The character set information must be exposed within the header of a page to ensure reliable rendering.

#Server and performances #Development #SEO

Goal

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

Implementation

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

Control

For each page checked:

  • Check that charset is 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.

By Opquast - Read the license

Business application and benefits

The rules should be applied to your projects from the design phase through to post-implementation , and they should be understood by all professionals with web and customer experience (CX) responsibilities: from strategy to operations, marketers to project managers, and editorial to technical staff. The benefits of using this ruleset are numerous, including improving customer satisfaction, web performance, and e-commerce, and expanding your client base, while also decreasing your errors and costs.

Multidisciplinary verticles - accessiiblity, SEO, e-commerce, ecodesign etc..- starting from the foundational Opquast base.

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 11,000 web professionals to have their skills certified. Train your teams or your students, contact us