Skip to content

SEO024 · Character encoding

Severity: warning

Flags a rendered page with no <meta charset> declaration. In SvelteKit the charset tag lives in src/app.html, so this rule is evaluated only in rendered analysis (the vite plugin); static (CLI) analysis emits nothing for it.

Without a declared character encoding the browser must guess, which can render text as mojibake. <meta charset="utf-8"> is the standard, unambiguous declaration and should be the first thing in <head>.

src/app.html
<head>
<meta charset="utf-8" />
%sveltekit.head%
</head>