Charset Declaration Test
tool in developement
About Charset Declaration Test

This test will check if the webpage has a character encoding declaration ("charset"). If the server doesn't specify a character encoding format when it sends an HTML file, the browser may display some characters incorrectly to users. Google recommends using the Unicode/UTF-8 character set when possible.

In order to pass this test you have to add a proper character encoding declaration to your webpage. Google recommends using the Unicode/UTF-8 character set when possible. You can do it by using one of the following methods:

  1. Add a meta charset element in your webpage. The element must be fully contained within the first 1024 bytes. The best practice is to add this tag as the first element in the head section of your document.
            <!DOCTYPE html>
            <html>
              <head>
                <meta charset="utf-8" />
                …
  2. Add a meta element with an http-equiv attribute:
            <!DOCTYPE html>
            <html>
              <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
                …
  3. Configure your server to add a Content-Type header that includes a charset directive.
            Content-Type: text/html; charset=utf-8