Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Charset not declared: fix garbled characters in search snippets

SEO-163Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A character encoding is the rulebook that turns stored bytes into letters. UTF-8 is the standard one and covers almost every language, plus curly quotes, dashes, euro signs and emoji. If a page does not say which encoding it uses, or says one and is saved in another, the reader guesses. The result is called mojibake: text such as ’ instead of an apostrophe, é instead of é, or a � symbol.

How a title can look

No charset or wrong charset

  • Title: Café Menu – Book a Table
  • Description shows ’ in place of apostrophes
  • Looks careless in results

UTF-8 declared and saved correctly

  • Title: Café Menu – Book a Table
  • Apostrophes and accents display correctly
  • Snippet reads cleanly everywhere

Why it costs you leads or sales

The direct impact is usually low, but it is visible. Strange symbols in a result make a business look neglected and can lower clicks. They can also hit the page itself: product names, prices with currency signs and form labels may display wrongly, which reduces trust at the moment someone decides to enter details.

How to check if your site has it

Check a page for encoding problems
  1. Search for your own pages

    Search site:yourdomain.com and scan titles and descriptions for â€, à or �.

  2. View the source

    Open the page, press Ctrl+U (Cmd+Option+U on Mac) and look in the first 1024 bytes of <head> for <meta charset="utf-8">.

  3. Check the HTTP header

    Run the command below and look for charset=UTF-8 in the content-type line.

  4. Compare the two

    The header and the meta tag should agree. If they differ, the header usually wins, so fix the header first.

Check the Content-Type headerbash
curl -sI https://www.example.com/ | grep -i content-type
# Expected: content-type: text/html; charset=UTF-8
Where the garbling happens
  1. Text writtenTitle typed with é or ’
  2. Saved or servedNo charset, or a mismatch
  3. Crawler decodesReads bytes wrongly
  4. Snippet shownJunk characters in results

The break happens when the page is decoded, so everything after it carries the bad text.

How to fix it

The fix has three parts: declare UTF-8, serve it in the header, and make sure the content really is UTF-8. Declaring UTF-8 on text saved in another encoding will not repair it; you must also resave or convert the source.

Declare UTF-8 first in the headhtml
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Café Menu – Book a Table</title>
  <meta name="description" content="Our menu and how to book a table.">
</head>
Fix by platform
  1. Check the theme header

    In header.php make sure <meta charset="<?php bloginfo( 'charset' ); ?>"> is present. Most themes include it.

  2. Check the database encoding

    In wp-config.php, define( 'DB_CHARSET', 'utf8mb4' ); should be set. Older sites may have latin1 and need a careful migration with a backup.

  3. Check SEO plugin fields

    Re-enter the garbled title or description in your SEO plugin and save.

Nginx: send the charset headernginx
server {
  charset utf-8;
  charset_types text/html text/plain text/css application/javascript application/json;
}
Apache: default charsethtaccess
AddDefaultCharset UTF-8

How to confirm it's fixed

Confirmation checks
  • View source shows <meta charset="utf-8"> within the first 1024 bytes of head
  • The curl command shows charset=UTF-8
  • Accents, quotes and dashes display correctly in the browser tab and on the page
  • The URL Inspection tool in Google Search Console shows clean text in the rendered page
  • Request indexing for key pages, then recheck the snippet after the next crawl

How to prevent it happening again

Habits that avoid encoding bugs
  • Use UTF-8 everywhere: files, database, header and meta tag
  • Keep <meta charset> as the first tag in head in your templates
  • Save CSV imports as UTF-8 before uploading
  • Test a page with accents and curly quotes after every migration or server change
  • Avoid pasting text from tools that add odd characters; paste as plain text

How FunnelGuard handles this

FunnelGuard does not check character encoding or snippet text yet. It is a possible future check. Today FunnelGuard runs your real customer journeys, such as lead forms and checkouts, on a schedule and checks each step, the tracking hits and whether test leads arrive. That can show you a broken page or form, but it will not tell you that a title is garbled.

Summary of causes and fixes

Common causes of garbled characters
CauseTypical signFix
No meta charsetAccents garbled on some browsersAdd <meta charset="utf-8">
Header says another charsetMeta tag ignoredSet header to UTF-8
File saved as Latin-1é for éResave as UTF-8
Database in latin1Bad text only on dynamic pagesConvert to utf8mb4 after backup
Bad CSV importGarbled product titlesRe-import as UTF-8

Questions people ask

Why does my title show weird characters like ’ in Google?

The page text was decoded with the wrong character encoding, usually because UTF-8 is not declared or the file was saved in a different encoding. Declare UTF-8 in a meta charset tag and the HTTP header, resave the content as UTF-8, then wait for Google to recrawl.

How do I declare UTF-8 on my website?

Add <meta charset="utf-8"> as the first tag inside <head> and send the header Content-Type: text/html; charset=UTF-8 from your server. Also make sure your files and database are actually stored as UTF-8.

Does a missing charset hurt SEO rankings?

It is not a direct ranking factor, but garbled titles and descriptions can lower clicks and make the page look untrustworthy. It can also make search engines misread your content, so it is worth fixing.

Why is my meta description full of question marks or � symbols?

The � symbol appears when the decoder meets bytes it cannot read in the declared encoding. Check that the text is saved as UTF-8 and that no header or tag declares another charset.

How can I check what charset my page uses?

Run curl -sI https://yoursite.com | grep -i content-type to see the header, and view the page source to find the meta charset tag. Both should say UTF-8.

Will fixing the charset update my Google snippet straight away?

No. Google has to recrawl the page and then choose to refresh the snippet. Requesting indexing in Search Console can speed it up, but allow days or weeks.

Does FunnelGuard detect charset problems?

No. FunnelGuard does not check character encoding yet; it is a possible future check. It monitors your journeys, tracking hits and test leads, so use the manual checks in this guide for encoding.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.