Forum Moderators: open
"Character Encoding mismatch! The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf-8) for this validation.
This page is not Valid HTML 4.01 Transitional!"
Should I just use utf-8 in my meta tag to fix this? Will utf-8 affect my pages? the site is in English.
Here is how my document starts:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
If you don't know what encoding format you're using then check the settings in your text editor. Ideally we'd all be using UTF-8 by now, but some programs still can't handle it.
If the page is a php page (the one I was working on was), you can do this:
<?php header("Content-type: text/css; charset: utf-8");?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
In this case, be sure to place the php code on the same line as the doctype declaration as I've done above - not to do so can cause some browsers to switch to quirks mode...
-B