[html5] Validator is incorrectly detecting that the page encoding is utf-8 when it is actually iso-8859-1

Jonathan Chetwynd jay at peepo.com
Tue Mar 26 01:49:15 PDT 2013


Brett,

you don't mention mimetype, so this may be your concern.
a URL would help.

seems off topic for this list, which relates to web standards, rather 
than support.
though a friendly bunch

~:"

Jonathan Chetwynd
http://www.gnote.org
Eyetracking in HTML5

On 26/03/13 08:19, Brett Ryan wrote:
> I continually get this validation error, though I have verified that 
> the page is in fact encoded in windows-1252.
>
> Internal encoding declaration "iso-8859-1" disagrees with the actual 
> encoding of the document ("utf-8").
>
> I have verified the document by downloading from the server using cURL 
> and uploading to the w3 checker (http://validator.w3.org/check) which 
> validates the document as the correct encoding (apart from the 
> encoding name of windows-1252).
>
> I've taken the following steps to ensure encoding is correct:
>
>  1. Process that starts forces |LANG='iso-8859-1'|
>  2. Forcing |file.encoding| on tomcat startup
>     |-Dfile.encoding=iso-8859-1|, this is confirmed by checking
>     |Charset.defaultCharset()| which reports |ISO-8859-1|.
>  3. Maven project resources are copied with |iso-8859-1|:
>     |<project.build.sourceEncoding>iso-8859-1</project.build.sourceEncoding>|
>  4. JSP |page| directive specifies encoding: |<%@page
>     contentType="text/html; charset=ISO-8859-1"
>     pageEncoding="ISO-8859-1" %>|
>  5. |Content-Type| has been set in page head: |<meta
>     http-equiv="content-type" content="text/html; charset=iso-8859-1">|
>  6. Tomcat |URIEncoding| set: |<Connector port="80"
>     protocol="HTTP/1.1" connectionTimeout="20000"
>     URIEncoding="iso-8859-1" redirectPort="8443" />|
>
> This is following from the SO question I have Why does my HTML 
> validator keep reporting a different encoding to that of the page? 
> <http://stackoverflow.com/questions/15610618/why-does-my-html-validator-keep-reporting-a-different-encoding-to-that-of-the-pa>
>
> To the moderator, I apologise I accidentally sent the original message 
> from my other email account.
>
>
>
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20130326/a526c3f7/attachment-0003.htm>


More information about the Help mailing list