PDA

View Full Version : Content-Type field/character sets


high
02-26-2004, 07:48 PM
I am attempting to "validate" (check for errors in) my HTML at http://validator.w3.org/

They are unable to validate my Web page because my page lacks a "Content-Type" field. The full text is as follows:

"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.

IANA maintains the list of official names for character sets.

The W3C Validator Team"


What "character encoding" and/or "charater sets" does 1stPage use?

Thanks for any clarification on this subject.

high

azlatin2000
02-26-2004, 08:12 PM
Just add this line in the head:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">

dabbler
02-27-2004, 02:24 AM
Codicil to above:

Unless, of course, you are making a page in a language which uses other characters.
Then you may need to specify a different charset in the statement above.

high
02-27-2004, 09:39 AM
Thanks to you both. When I add this line to my page, the validator works!

"ISO-8859-1" seems to be the identifying chatset information. But where in 1stPage would I have EVER found that information, if at all? Where DOES one find such apparently important information?

I wonder why it isn't automatically provided by 1stPage at the top of each new HTML document, just like "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">" is.