Neova高機能SEOプラットフォーム

文字コードの宣言がない

Neovaでは クロールそのものから実行されます。設定は不要です。

ルールの最終確認:2026年10月17日 · ガイドの更新:2026年7月7日

HTML 標準では文字エンコーディングの宣言が必須で、Lighthouse も同じ三つの条件を適用します。宣言がないと、ブラウザーやクローラーがテキストを誤った文字で表示することがあります。

できること

head の先頭、最初の 1024 バイト以内に <meta charset="utf-8"> を追加するか、Content-Type ヘッダーで charset を設定してください。

Neovaがフラグを立てる理由

  • エンコーディングが宣言されていないと、ブラウザやクローラーが誤って推測し、アクセント付きの文字や記号が文字化けすることがあります。
  • HTML標準は、エンコーディングの宣言をドキュメントの最初の1024バイト以内に置くことを求めています。
  • Lighthouseは、charsetの宣言がないか、宣言の位置が遅すぎるページを不合格にします。

出典

完全ガイド

この部分は現在、英語のみです。

This check fires when a page ships no character encoding declaration — no <meta charset> in the head and no charset in the Content-Type HTTP header. Without it, the browser and Googlebot have to guess the encoding, and when they guess wrong you get mojibake: curly quotes turn into ’, accented names break, emoji become question marks. Garbled text hurts readability, can distort how Google parses your content, and looks broken to anyone who lands on the page.

Note the near-duplicate slug on this site, Missing Charset — same underlying issue. If both surface in your audit, treat them as one fix.

What Breaks When Encoding Is Undeclared

Modern browsers default to UTF-8 in many cases, but "many" isn't "all," and you don't control every client or proxy in the chain. When no charset is declared, the parser falls back to sniffing bytes or applying a locale-dependent default like Windows-1252. Any multi-byte character — an em dash, a smart quote, a é or an ü — then renders as garbage.

Here's a page with no declaration anywhere. The content is UTF-8 on disk, but nothing tells the client that:

<!DOCTYPE html>
<html>
<head>
  <title>Café Menu — Crème Brûlée</title>
  <!-- no charset declared, no header charset either -->
</head>
<body>
  <h1>Crème Brûlée — £7.50</h1>
</body>

On a client that defaults to Windows-1252, the heading can render as Crème Brûlée — £7.50. Ugly, and Google may index the mangled version.

The Fix: Declare UTF-8, First Thing in the Head

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">  <!-- must be within the first 1024 bytes -->
  <title>Café Menu — Crème Brûlée</title>
</head>

The <meta charset> must appear inside the first 1024 bytes of the document, which in practice means it should be the very first thing in the head, before the <title>. Belt and braces: also send it in the header — Content-Type: text/html; charset=utf-8. The HTTP header wins over the meta tag when both are present, so make sure they agree.

Charset Declaration Methods, Ranked

Method Example Precedence Notes
HTTP header Content-Type: text/html; charset=utf-8 Highest Overrides the meta tag; set at the server
Meta charset (HTML5) <meta charset="utf-8"> Used if no header Must be in first 1024 bytes
Legacy meta <meta http-equiv="Content-Type" ...> Works but verbose The short form is preferred
BOM (byte-order mark) Invisible UTF-8 BOM Fallback signal Can cause its own issues; avoid relying on it
Nothing declared — Guesswork Mojibake risk

How to Detect It

  1. Screaming Frog. After a crawl, this shows in the page-level data — check the Content tab and the response headers for each URL. Frog surfaces the declared encoding; pages with none flagged, or a mismatch between the header charset and the meta charset, are your targets. Use Bulk Export to pull the full list.
  2. View Source. Ctrl+U and search for charset. If there's no match, or the tag sits deep in the head after a lot of other markup (pushing it past the 1024-byte window), flag it. Then open DevTools → Network, click the document request, and read the Content-Type response header to see if the server declares one.
  3. Google Search Console. URL Inspection → View crawled page. If the rendered HTML shows garbled characters where accents or symbols should be, Google is parsing the wrong encoding. Compare against how the page looks in your own browser with the encoding forced to UTF-8.

How to Fix It

  1. Set the server header to text/html; charset=utf-8 for all HTML responses. This is the most reliable single fix because it wins precedence.
  2. Add <meta charset="utf-8"> as the first element inside <head>, before the title, so it's inside the 1024-byte window even if the header is missing.
  3. Make sure the file is actually saved as UTF-8. Declaring UTF-8 while the bytes are Windows-1252 just relocates the problem. Check your editor's encoding and your database/connection collation.
  4. Keep header and meta in agreement. A header saying iso-8859-1 with a meta saying utf-8 will render as the header says — and probably wrong.
  5. Re-crawl and spot-check pages with accented content, currency symbols, and smart quotes to confirm the garbling is gone.

FAQ

Won't Browsers Just Default to UTF-8 Now?

Many will, but not universally, and not through every proxy or CDN. Relying on defaults means gambling on the client. Declare it and stop guessing.

Does a Missing Charset Actually Hurt Rankings?

Not directly as a ranking factor, but garbled text degrades how Google reads your content and tanks the experience for users, which shows up in engagement. Mangled titles and headings can also look broken in the SERP.

Header Charset or Meta Charset — Which Should I Use?

Use both, and make them match. The header takes precedence, so if you can only fix one, fix the header. The meta tag is your safety net when the header is absent.

Where Exactly Does the Meta Charset Need to Go?

Inside the first 1024 bytes of the document, which means the very top of the head, before the title and any other metadata. If you bury it, the browser may have already started sniffing.

Yes — if the head is malformed or closes early, your charset tag can end up outside it and get ignored. Validate the head; see Missing Head Tag. For encoding on other document types, the HTTP header optimization guide covers server-side declarations.

自分のサイトで見つける

Neovaはこのチェック項目とほかのすべてをクロールのたびに実行し、修正内容をチーム向けのチケットとして書き出します。

  • Mac、Windows、Linux用のデスクトップアプリ
  • 696項目のチェックすべてに出典付き
  • Search ConsoleとAnalytics 4を読み取り専用で接続
  • Jira、Linear、Asanaへのチケット

Neovaをダウンロード Desktop Freeプラン、またはSoloを14日間無料、カード不要。

コンテンツのチェック項目すべて · ガイド · チェック項目一覧

執筆:Neova Labs · チェック項目一覧に戻る