Skip to content
Nazmul Nikhil
Menu

Encoding Not Declared (Semrush): Add a Character Set to Every Page

Semrush flags pages that don't declare a character encoding. Without it, text can show as garbled symbols. Here's how to declare UTF-8.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Encoding Not Declared (Semrush): Add a Character Set to Every Page
Photo: Markus Spiske on Unsplash

In short

Semrush flags "Encoding not declared" when a page doesn't state its character encoding, either in the HTTP Content-Type header or in a <meta charset> tag. Browsers then guess, and may display text incorrectly. Declare UTF-8 in both places.

If a browser guesses the wrong encoding, apostrophes and accented letters turn into odd symbols.

The fix

As the first element inside <head>:

<meta charset="utf-8">

And in the server's response header:

Content-Type: text/html; charset=utf-8

The meta tag must appear within the first 1,024 bytes of the page.

Where to set it

WordPress: themes output it with bloginfo('charset'); if missing, the theme's header is outdated. Shopify, Webflow and Wix: set automatically; flags usually come from custom HTML pages or embeds. Apache: add AddDefaultCharset UTF-8 to .htaccess. Custom builds: add the meta tag to the base template and set the header in your server.

This guide isn't affiliated with or endorsed by Semrush.

Sources and references

TAGSSemrush Site AuditSemrush encoding not declaredMeta charsetUtf-8 declaration
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com