agentic‑readiness docs
/
Scan at scale Blog Build one › Run a scan ›

DocsContentLanguage and encoding

Language and encoding

Declared language and charset, so text is interpreted correctly.

adoption Web baselinetrend ► flatchecked on every pagechecks 5verified 2026-10-05
Set up Language and encoding on your site The two declarations that stop an agent guessing what language your page is in and how to decode it.
Free Declare language and encoding

Why an agent cares

An undeclared or late charset makes an agent guess, and a wrong guess corrupts every non-ASCII character it reads. A malformed lang tag is a smaller problem but the same kind: the declaration is there and cannot be used.

Adoption

Web baseline. Standard equipment on the web. Its absence is the exception rather than its presence.

Direction of travel: ► flat, as at .

BCP 47 and UTF-8 are near-universal; UTF-8 is on roughly 98% of pages (W3Techs).

What we check

Absence is never a finding. Every check below runs only when this technology is detected, so a site that has not adopted this is not assessed on it and appears in no report. 5 of these 5 can fail it. In Lumar these appear on each page's own row.
CheckSeverityRaisesOn whose authority
Charset Missinghighconformance, usabilityspecification: WHATWG HTML — the lang attribute
Lang Missingmediumusabilityspecification: WHATWG HTML — the lang attribute
Lang Invalid BCP 47mediumusabilityLumar readiness bar, beyond BCP 47 — Tags for Identifying Languages
Charset Non-UTF-8mediumconformance, usabilityspecification: WHATWG HTML — the lang attribute
Charset Latemediumconformance, usabilityspecification: WHATWG HTML — the lang attribute

Examples

Both run through the same checks as a live scan: the first passes, the second is flagged.

correcthtml
<html lang="en">

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>How agent-readiness works — Example</title>
    <link rel="canonical" href="https://example.com/content/correct.html" />
present but wronghtml
<html lang="english">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>How agent-readiness works — Example</title>

    <meta name="description" content="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" />
    <meta charset="ISO-8859-1" />

Specifications

DocumentRevisionKind
BCP 47 — Tags for Identifying LanguagesCurrent best practicespecification
WHATWG HTML — the lang attributeLiving Standardspecification
WHATWG Encoding StandardLiving Standardspecification
WHATWG HTML — meta charset (within the first 1024 bytes)Living Standardspecification

Last re-read against the published documents: .