Character encoding

The page declares its character encoding so text displays correctly.

On this page

Impact

ScanGov impact ratings

About

A charset (character set) is a list of letters, numbers, and symbols that computers use to show and read text. It helps make sure the right characters appear, especially in different languages. For example, UTF-8 is a popular charset that works with many languages and symbols. Without the correct charset, websites may show weird symbols or question marks. Setting the right charset helps everyone read and understand the text properly.

Risks

Special characters show up as weird symbols.

Why it's important

Helps computers show words and symbols correctly in different languages and on different devices.

User stories

As a website visitor, I want the text to display correctly in my language so I can read and understand it easily.

Code

<head>
  <meta charset="UTF-8">
  <title>Page title</title>
</head>

Error

ScanGov messaging when a site fails a standard:

Charset declaration is missing or occurs too late in the HTML.

Guidance

Indicators

On this page