警告:誰かが行ってこれを複製としてマークする前に、そうではないことを理解してください。受け入れられた答えはまさに私がしていることですが、私は次の問題に直面しています。
クライアントフォルダのHTMLファイルは次のようになります。
<head>
<meta charset="utf-8"/>
<title>blah-blah</title>
---
ファイアバグコンソールに表示されるメッセージは次のとおりです。
The character encoding declaration of the HTML document
was not found when prescanning the first 1024 bytes of
the file. When viewed in a differently-configured browser,
this page will reload automatically. The encoding
declaration needs to be moved to be within the first
1024 bytes of the file.
ビューソースを実行すると、headとmeta charset要素の間に、たくさんのリンクスタイルシートとスクリプトタグが表示されます。
メタ文字セットを削除すると、firebugコンソールで次のようになります。
The character encoding of the HTML document was not
declared. The document will render with garbled text
in some browser configurations if the document
contains characters from outside the US-ASCII range.
The character encoding of the page must to be declared
in the document or in the transfer protocol.
メタ文字セットタグを頭の直後に表示するにはどうすればよいですか?