注意:有人去之前將其標記爲this的副本,請理解它不是。接受的答案正是我正在做的,但我正面臨以下問題。客戶端文件夾中元標記不在前1024個字節
HTML文件是這樣的:
<head>
<meta charset="utf-8"/>
<title>blah-blah</title>
---
我在Firebug控制檯得到的信息是:
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.
當我做了查看源代碼,頭之間元字符集元素,我看到了一大堆鏈接樣式表和腳本標籤。
如果我刪除的元字符集,我得到這個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.
我如何獲得的元字符集標記的頭部之後出現嗎?