Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What does this error mean?

Posted on 2008-06-23
3
Medium Priority
?
606 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 43

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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

783 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