Instead of:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;"/>

Try:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

This will match what your web server is sending, otherwise change your
web server config if you can :-)

Lloyd

On 11/10/05, Paul Collins <[EMAIL PROTECTED]> wrote:
>
> I am getting the following warning when I validate my pages:
>
> --------------
> Character Encoding mismatch!
>
> The character encoding specified in the HTTP header (iso-8859-1) is
> different from the value in the <meta> element (utf-8). I will use the value
> from the HTTP header (iso-8859-1) for this validation.
>
> ------------------
>
> My header code looks like this, which should validate fine:
>
> <!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"; xml:lang="en" lang="en">
> <head>
>  <title>title</title>
>  <meta http-equiv="Content-Type" content="text/html; charset=utf-8;"/>
>
> I have just started reading more about character encoding and special
> characters, is my problem that I have used decimal character refereces? For
> example
>
> - as &#45;
>
> ' as &#39;
>
> and so on. I thought this was the correct way to add special characters for
> XHTML, but what I am reading now seems to contradict this. This is the part
> of standards where I get a bit confused. Does anyone have any advice or know
> of some good articles where they explain this in simple terms??
>
> Cheers
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to