What AuditX checks
The scan takes the visible text of the page you scanned, without scripts and styles, and looks for two kinds of damage. The first is a fixed list of letter pairs that appear when text saved as UTF-8 is read as Windows-1252 or Latin-1. For example, the word cafe with an accent on the last letter turns into a capital A with a tilde followed by a copyright sign. The list covers the accented letters and symbols of the Latin-1 block (such as a with an accent or the euro sign) and curly quotes, dashes and the ellipsis. The second is the Unicode replacement character, the black diamond with a question mark. The check passes when none of these is found. It fails when at least one is found, and the message gives the number of finds and up to 3 short pieces of text around them. There is no warn state and no info state. The scan stops counting after 500 finds. This check belongs to the technical category, not indexability. It does not look at the charset tag or the HTTP header, only at what the text looks like. It does not judge text in Cyrillic, Chinese, Arabic or other scripts, and it reads only this one page, not the rest of the crawl.
Why it matters
W3C Internationalization guidance explains that text is stored as bytes and must be read with the same character encoding that wrote it, or the letters come out wrong. This is the cause of the pattern the scan looks for.
W3C Internationalization guidance also says that the declared encoding must match the encoding the file was really saved in. A correct charset tag on text that was already damaged in storage does not repair it.
How to fix it
- Open the page and find the garbled words shown in the report. Note whether they are in one article or all over the site.
- Check that your database, your CMS and any import or export file all use UTF-8, and that the page sends charset UTF-8 in the content type header or in a meta tag.
- Repair the stored text. Changing the charset tag alone does not fix words that are already damaged in the database. Re-import the content or replace the broken words.
- After a site move or an upgrade, look at a few pages with accented letters, curly quotes and the euro sign.
<meta charset="utf-8">
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my site