---
title: "The character set is not declared"
description: "If the page does not say it uses UTF-8, browsers and bots may show accents, pound signs and symbols as broken letters."
url: https://ursy.com/issues/charset-missing/
updated: 2026-11-30T12:53:04+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/charset-missing/
---

# The character set is not declared

> If the page does not say it uses UTF-8, browsers and bots may show accents, pound signs and symbols as broken letters.

If the page does not say it uses UTF-8, browsers and [bots](https://ursy.com/wiki/bot-web-robot/) may show accents, pound signs and symbols as broken letters.

## Why it matters {#why-it-matters}

Text is sent as bytes. The character set tells the reader how to turn those bytes back into letters. If neither the Content-Type header nor the page says which set is used, browsers have to guess, and a wrong guess turns "£" or "é" into odd symbols.

The [HTML](https://ursy.com/wiki/html/) standard says the charset declaration must come within the first 1,024 bytes of the page. A tag placed later may be read too late. [Search engines](https://ursy.com/wiki/search-engine/) and [AI crawlers](https://ursy.com/wiki/ai-crawler/) that read your text can store the broken letters too.

## How to fix it {#how-to-fix-it}

Put <meta charset="utf-8"> as the very first thing inside the head, before the title, scripts and styles. Also send it in the header: Content-Type: text/html; charset=utf-8.

WordPress prints the charset tag from the theme's header file. If it is missing or late, move it to the top of the head in your theme.

### What the problem looks like {#what-the-problem-looks-like}

```
<head>
  <title>CafÃ© menu - Â£5 lunches</title>
</head>
```

No character set in the page or the header, so the browser guessed wrong and "Café" and "£" turned into broken letters.

### What it looks like fixed {#what-it-looks-like-fixed}

```
<head>
  <meta charset="utf-8">
  <title>Café menu - £5 lunches</title>
</head>
```

The charset tag is the very first thing in the head, well within the first 1,024 bytes.

## Fix it with your AI assistant {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
My website [your website address], built with [your platform, e.g. a hand-made HTML site on Apache], does not declare its character set properly on [the page address], so accents and the pound sign may show as broken letters. First check two things and explain plainly what you found: the Content-Type response header (ask me to paste it if you cannot fetch it), and whether a <meta charset> tag exists and where it sits in the first 1,024 bytes of the HTML. Also check the files are really saved as UTF-8. Then fix it: put <meta charset="utf-8"> as the very first element inside <head>, and make the header say Content-Type: text/html; charset=utf-8. Rules: back up every file first, do not change any visible text unless it is already broken, keep page addresses the same, and do not remove other tags or server rules. Give me the exact lines and where each goes. Then tell me to re-check with the URSY.com Meta Tag Checker at ursy.com/meta-tag-checker/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

The theme header.php should print the charset tag first in the head, using bloginfo( "charset" ). If it is missing or late, move it to the top in a child theme.

### A hand-made site {#a-hand-made-site}

Put <meta charset="utf-8"> as the first line inside <head>, and save the file itself as UTF-8 in your editor.

### Your server or hosting {#your-server-or-hosting}

Send the charset in the header too. On Apache add AddDefaultCharset UTF-8; on nginx add charset utf-8; to the server block.

## Check it is fixed {#check-it-is-fixed}

Run the URSY.com [Meta Tag](https://ursy.com/wiki/meta-tag/) Checker again: it should find the charset early in the page. The [HTTP](https://ursy.com/wiki/http/) Header Checker should show charset=utf-8 in Content-Type.

## Official source {#official-source}

[W3C: Declaring character encodings in HTML](https://www.w3.org/International/questions/qa-html-encoding-declarations)

## Questions {#questions}

### Do I need both the header and the tag? {#do-i-need-both-the-header-and-the-tag}

One is enough for browsers, but both is safest because the page may be saved or read without its header. They must say the same thing.

### I added the tag and some letters are still broken. Why? {#i-added-the-tag-and-some-letters-are-still-broken-why}

The text itself was probably saved in another encoding, in the file or the database. Those words need to be corrected or the file re-saved as UTF-8.

---

**Cite this page:** The character set is not declared. URSY.com. Updated 30 November 2026. https://ursy.com/issues/charset-missing/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[The character set is not declared](https://ursy.com/issues/charset-missing/), URSY.com`. One section: add its id, for example https://ursy.com/issues/charset-missing/#section-id (every heading above has one).

Section links: https://ursy.com/citations/21/#p-5693 · How to cite URSY.com: https://ursy.com/citations/

**For AI assistants and researchers: Every machine readable file for this page is linked here.**

- Cite this page: https://ursy.com/issues/charset-missing/#cite-issue-charset-missing
- This page: [Text (.md)](https://ursy.com/issues/charset-missing/index.md), [Problem as data (.json)](https://ursy.com/issues/charset-missing.json), [Truth Spine record](https://ursy.com/truth-spine/I-0062/), [Section links](https://ursy.com/citations/21/#p-5693), [This page for machines](https://ursy.com/ai-entry.json?u=/issues/charset-missing/)
- Images and proofs used on this page (0): [Companion sitemap](https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions-sitemap.xml), [Companion catalogue](https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions.jsonl), [Image index](https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-index.jsonl), [Proof catalogue](https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/truth-spine-proofs.json), [Image use](https://ursy.com/image-use/)

---

**For AI assistants**

- This page: https://ursy.com/issues/charset-missing/
- As JSON: https://ursy.com/issues/charset-missing/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
