Solved

What does this error mean?

Posted on 2008-06-23
3
579 Views
Last Modified: 2008-08-07
I develop sites fully in css and lately i've been getting this error from the w3c validator when i validate my sites.
What does it mean and how do i fix it?
The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (windows-1252). I will use the value from the HTTP header (utf-8) for this validation.

This is what I have above the </head> tag ( i left out irrelevant stuff)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
0
Comment
Question by:Caiapfas
3 Comments
 
LVL 29

Expert Comment

by:Badotz
ID: 21851132
The message is clear:

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

What is the "irrelevant" stuff?
0
 
LVL 42

Expert Comment

by:David S.
ID: 21851196
It means you've got a mismatch, so you should change your page to match what the server is configured to use.

It's best to avoid using Windows character sets for web pages anyway because the Internet is accessed by people using many platforms other than Windows.
0
 
LVL 9

Accepted Solution

by:
zemond earned 500 total points
ID: 21851221
The header data spit out by the server appears to be UTF-8, you are forcing the character set windows-1252 in the meta tag, you need to either change the meta data to utf-8 or change the header data to windows-1252
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why Bundles is not working on certain files - ASP MVC 3 45
Error on link 14 38
Alignment is not working correctly. 8 33
CSS Logo Problem. 2 8
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now