homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Validation Error with utf-8
Error validating 2 warnings with utf-8

Msg#: 4255212 posted 4:01 pm on Jan 19, 2011 (gmt 0)

I wonder if someone can help me in explaining why my webpage wont validate on the W3C website, once checked I'm getting the following 2 warnings:

Character Encoding mismatch!

The character encoding specified in the HTTP header (utf8) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (utf-8) for this validation.

Character Encoding Override in effect!

The detected character encoding "utf8" has been suppressed and "utf-8" used instead.

This is the code at the header of my page, am I doing anything wrong?



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



WebmasterWorld Senior Member pageoneresults us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4255212 posted 4:19 pm on Jan 19, 2011 (gmt 0)

Could be one of two things; you've accidentally checked the box during validation to override the character encoding or, your server is sending a different character encoding value before the metadata is served, its coming from the http server header which comes before the meta, hence the reason for the conflict.


Msg#: 4255212 posted 4:39 pm on Jan 19, 2011 (gmt 0)

Thanks for getting back to me,

I've checked the validation and I haven't checked any boxes or changed anything on the page before validation.

I'll contact my web hosting to see if it's an issue with the server.


WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4255212 posted 9:38 pm on Jan 19, 2011 (gmt 0)

Use the "Live HTTP Headers" extension for Firefox to look at the HTTP headers (as opposed to looking at the HTML head section by viewing the HTML source) and see what you can see in there.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved