Re: Filter error "The character encoding of the HTML document was not declared."

6,343 views
Skip to first unread message

Sebastian Zartner

unread,
Sep 17, 2012, 5:57:08 PM9/17/12
to fir...@googlegroups.com
The option to control this is called Show XML/HTML Errors. See issue 5625 for more info.

Sebastian

On Monday, September 17, 2012 4:33:29 PM UTC+2, Starquest wrote:
I found another thread on this issue, but I'm still seeing the issue.  The following error appears in my Firefox Error Console:

Error: 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.

I want to figure out a way to hide or filter this error.  I checked the various Firebug options, but nothing seems to work.  Any suggestions?

Starquest

unread,
Sep 18, 2012, 11:31:10 AM9/18/12
to fir...@googlegroups.com
Mine is unchecked, yet I'm still getting the errors.  The errors are appearing in firefox's console.  I get to that console by this url: chrome://global/content/console.xul

Sebastian Zartner

unread,
Sep 18, 2012, 1:03:50 PM9/18/12
to fir...@googlegroups.com
Ah, I missed that you're talking about the Firefox Error Console. We don't influence the output of that console and it's unrelated to Firebug.
The error message already gives a hint for what to do to avoid it:


"The character encoding of the page must to be declared in the document or in the transfer protocol."

So either set a <meta> tag like <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> or add an HTTP header like Content-Type: text/html; charset=utf-8.
Or if you really just want to filter that message out, I suggest you install Console².

Sebastian
Reply all
Reply to author
Forward
0 new messages