Welcome to WebmasterWorld Guest from 54.198.147.221

Forum Moderators: incrediBILL

Message Too Old, No Replies

Validation Error with utf-8

Error validating 2 warnings with utf-8

     
4:01 pm on Jan 19, 2011 (gmt 0)

New User

5+ Year Member

joined:Mar 28, 2010
posts: 13
votes: 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?

Thanks,

James

<!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" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4:19 pm on Jan 19, 2011 (gmt 0)

Senior Member from US 

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

joined:Apr 27, 2001
posts: 12172
votes: 61


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.
4:39 pm on Jan 19, 2011 (gmt 0)

New User

5+ Year Member

joined:Mar 28, 2010
posts: 13
votes: 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.
9:38 pm on Jan 19, 2011 (gmt 0)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members