{
    "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/",
    "canonical": "https://ursy.com/issues/charset-missing/",
    "markdown": "https://ursy.com/issues/charset-missing/index.md",
    "json": "https://ursy.com/issues/charset-missing/index.json",
    "published": "2026-11-29T21:57:24+00:00",
    "updated": "2026-11-30T12:53:04+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/charset-missing/",
    "start_here": {
        "page": "https://ursy.com/issues/charset-missing/",
        "markdown": "https://ursy.com/issues/charset-missing/index.md",
        "json": "https://ursy.com/issues/charset-missing/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "for_ai": {
        "cite": "https://ursy.com/issues/charset-missing/#cite-issue-charset-missing",
        "this_page": [
            {
                "what": "Text (.md)",
                "url": "https://ursy.com/issues/charset-missing/index.md"
            },
            {
                "what": "Problem as data (.json)",
                "url": "https://ursy.com/issues/charset-missing.json"
            },
            {
                "what": "Truth Spine record",
                "url": "https://ursy.com/truth-spine/I-0062/"
            },
            {
                "what": "Section links",
                "url": "https://ursy.com/citations/21/#p-5693"
            },
            {
                "what": "This page for machines",
                "url": "https://ursy.com/ai-entry.json?u=/issues/charset-missing/"
            }
        ],
        "proofs": {
            "count": 0,
            "files": [
                {
                    "what": "Companion sitemap",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions-sitemap.xml"
                },
                {
                    "what": "Companion catalogue",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions.jsonl"
                },
                {
                    "what": "Image index",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-index.jsonl"
                },
                {
                    "what": "Proof catalogue",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/truth-spine-proofs.json"
                },
                {
                    "what": "Image use",
                    "url": "https://ursy.com/image-use/"
                }
            ]
        },
        "whole_site": [
            {
                "what": "llms.txt",
                "url": "https://ursy.com/llms.txt"
            },
            {
                "what": "ai-entry.json",
                "url": "https://ursy.com/ai-entry.json"
            },
            {
                "what": "agents.json",
                "url": "https://ursy.com/agents.json"
            },
            {
                "what": "/.well-known/",
                "url": "https://ursy.com/.well-known/"
            },
            {
                "what": "MCP server",
                "url": "https://ursy.com/mcp/"
            },
            {
                "what": "AI hub",
                "url": "https://ursy.com/ai/"
            },
            {
                "what": "Image use",
                "url": "https://ursy.com/image-use/"
            },
            {
                "what": "How to cite URSY.com",
                "url": "https://ursy.com/citations/"
            }
        ]
    },
    "issue": {
        "slug": "charset-missing",
        "problem": "The character set is not declared",
        "summary": "If the page does not say it uses UTF-8, browsers and bots may show accents, pound signs and symbols as broken letters.",
        "status": "Live",
        "priority": "medium",
        "category": "titles-meta",
        "category_title": "Titles, descriptions and sharing",
        "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 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 and AI crawlers that read your text can store the broken letters too."
        ],
        "how_to_fix": [
            "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."
        ],
        "steps": [],
        "check_it_is_fixed": "Run the URSY.com Meta Tag Checker again: it should find the charset early in the page. The HTTP Header Checker should show charset=utf-8 in Content-Type.",
        "found_by": [
            {
                "tool": "meta-tag-checker",
                "name": "Meta Tag Checker",
                "status": "Live",
                "page": "https://ursy.com/meta-tag-checker/",
                "card": "https://ursy.com/meta-tag-checker.json"
            },
            {
                "tool": "http-header-checker",
                "name": "HTTP Header Checker",
                "status": "Live",
                "page": "https://ursy.com/http-header-checker/",
                "card": "https://ursy.com/http-header-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/charset-missing",
        "source": {
            "url": "https://www.w3.org/International/questions/qa-html-encoding-declarations",
            "title": "W3C: Declaring character encodings in HTML"
        },
        "cite": "The character set is not declared. URSY.com. https://ursy.com/issues/charset-missing/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/charset-missing/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/charset-missing/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/charset-missing/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/charset-missing/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/charset-missing/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/charset-missing/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/charset-missing/#wordpress"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/charset-missing/#a-hand-made-site"
        },
        {
            "level": 3,
            "text": "Your server or hosting",
            "id": "your-server-or-hosting",
            "url": "https://ursy.com/issues/charset-missing/#your-server-or-hosting"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/charset-missing/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/charset-missing/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/charset-missing/#questions"
        },
        {
            "level": 3,
            "text": "Do I need both the header and the tag?",
            "id": "do-i-need-both-the-header-and-the-tag",
            "url": "https://ursy.com/issues/charset-missing/#do-i-need-both-the-header-and-the-tag"
        },
        {
            "level": 3,
            "text": "I added the tag and some letters are still broken. Why?",
            "id": "i-added-the-tag-and-some-letters-are-still-broken-why",
            "url": "https://ursy.com/issues/charset-missing/#i-added-the-tag-and-some-letters-are-still-broken-why"
        }
    ],
    "links": [
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "Search engines",
            "url": "https://ursy.com/wiki/search-engine/",
            "internal": true
        },
        {
            "text": "AI crawlers",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "Meta Tag",
            "url": "https://ursy.com/wiki/meta-tag/",
            "internal": true
        },
        {
            "text": "HTTP",
            "url": "https://ursy.com/wiki/http/",
            "internal": true
        },
        {
            "text": "W3C: Declaring character encodings in HTML",
            "url": "https://www.w3.org/International/questions/qa-html-encoding-declarations",
            "internal": false
        }
    ],
    "words": 629,
    "text": "If the page does not say it uses UTF-8, browsers and bots may show accents, pound signs and symbols as broken letters. 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 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 and AI crawlers that read your text can store the broken letters too. 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 <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 <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 Paste this into 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 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 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 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 Run the URSY.com Meta Tag Checker again: it should find the charset early in the page. The HTTP Header Checker should show charset=utf-8 in Content-Type. Official source W3C: Declaring character encodings in HTML Questions 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? 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.",
    "source": "https://ursy.com/issues/charset-missing/"
}