Avvertenza: prima che qualcuno parli di questo numero come this, si prega di capire che non lo è. La risposta accettata è esattamente quello che sto facendo, eppure sto affrontando il seguente problema. file diMeta tag non nei primi 1024 byte
HTML nella cartella del client si presenta così:
<head>
<meta charset="utf-8"/>
<title>blah-blah</title>
---
Il messaggio che sto ottenendo nella console 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.
Quando faccio una fonte di vista, tra la testa e la elemento meta charset, vedo un sacco di fogli di stile di collegamento e tag di script.
Se rimuovo il meta charset, ottengo questo nella console 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.
Come faccio ad avere il tag charset meta di apparire subito dopo la testa?