Forum Moderators: open

Message Too Old, No Replies

What does this html validator message mean?

not able to extract a character encoding

         

larry12468

5:31 am on Mar 4, 2003 (gmt 0)

10+ Year Member



When validating a page, the validator returns:

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

As the first line of the page, I have
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

The page is located at:
www.RaymondHome.com

Thanks,

Larry

digitalghost

5:36 am on Mar 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Validator wants to see something like:

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

larry12468

8:17 am on Mar 4, 2003 (gmt 0)

10+ Year Member



Thank you DigitalHost

I designed the site with Coffee Cup, which doesn't
automatically insert the code you mentioned.

How do I learn where to get the code, for example, could I just use the code you cited?

Thanks,

Larry12468

hakre

8:22 am on Mar 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi larry12468,

additional information can be found here:
which content type/charset to use [webmasterworld.com]
<meta http.....charset=us-ascii"> - Is this the best charset to use? [webmasterworld.com]

the code cited is a meta-tag placed into the head section of your website (below the title tag for example). edit the source of your page in coffeecup, then you can copy and paste it in.

larry12468

11:34 pm on Mar 4, 2003 (gmt 0)

10+ Year Member



Thank you!

g1smd

12:57 am on Mar 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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

If you are only using HTML (not XHTML code), then take that final / out. The first / after <head> is interpreted as being </head><body> which then leads to cascading errors for all of the meta tags and for the real </head> and <body> tags.

See also: [webmasterworld.com...]

digitalghost

1:01 am on Mar 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>If you are only using HTML

People are still using plain vanilla HTML? ;)

Thanks for pointing that out though, I can see people using the XHTML version and getting validation errors. I just haven't used HTML in so long that I forget about the difference in closing tags.