Solved

What does this error mean?

Posted on 2008-06-23
3
578 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

758 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

22 Experts available now in Live!

Get 1:1 Help Now