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.
Related issues
Sources and references
Semrush Knowledge Base, What Issues Can Site Audit Identify?

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.



