Forum Moderators: open
"I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to validate the document. The sources I tried are:
The HTTP Content-Type field.
The XML Declaration.
The HTML "META" element.
And I even tried to autodetect it using the algorithm defined in Appendix F of the XML 1.0 Recommendation.
Since none of these sources yielded any usable information, I will not be able to validate this document. Sorry. Please make sure you specify the character encoding in use."
I am using Dreamweaver to create the page and I have no idea what I need to include to make this work. Can someone provide an example of the code cahnge I need to make?
Much thanks-
Put this line in the head-section of your page:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> Pick the charset you need. iso-8859-1 is standard western, iso-8859-15 more or less the same but with better support for the euro sign. These are just two charsets, there are many more out there.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I would assume that this means the pages are written in HTML version 4.01 - am I correct in this assumption?
I thought that I heard that DreamweaverMX was XHTML compliant but I am not 100% sure on that.
To have it rendered in standards mode, specify the full doctype which is..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
All on one line, at the very top of the document, above <html>.
See [alistapart.com...]
Note: thats not what is causing your content-type problem, but its an important point. ;)
More useful suggestion: try setting the character set manually on the validator for now, and see if it flags up any other problems with the html.