[thelist] Can't validate page, gives error.

Jeff Howden jeff at jeffhowden.com
Tue Mar 25 23:41:17 CST 2003


craig,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Craig
>
> When trying to validate a page with W3's validator, it
> says it can't validate because:
>
>   "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."
>
> Its got a XHTML doctype.
>
> the page is at
> http://www11.brinkster.com/fx01/dirlist.asp
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

cmd> GET /fx01/dirlist.asp HTTP/1.0
cmd> Host: www11.brinkster.com
cmd>
text/html => dirlist.asp
RequestDone Error = 0
StatusCode = 200
Received 5580 bytes
hdr>HTTP/1.0 200 OK
hdr>Server: Microsoft-IIS/5.0
hdr>Date: Wed, 26 Mar 2003 08:33:30 GMT
hdr>Set-Cookie: BrinksterServer=3
hdr>Connection:      close
hdr>Content-Length: 5580
hdr>Content-Type: text/html
hdr>Set-Cookie: ASPSESSIONIDQCBCSRRC=KLFEEPKACIDHBKKMKPNABFOF; path=/
hdr>Cache-control: private

it's looking in the headers for something like this (which you can see from
the dump above it's not getting):

Content-Type: text/html; charset=ISO-8859-1

since it's not finding that, it's looking in the body of the document for
something to tell it what the encoding is.  one place it looks is in the
<?xml?> tag on the first line:

<?xml version="1.0"?>

you're missing the encoding attribute.

<?xml version="1.0" encoding="iso-8859-1" ?>

so, since it's not finding it there, it's looking for something like this:

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

which it's also not finding.  out of options, it gives up and throws an
error.

.jeff

http://evolt.org/

NOTICE:  members.evolt.org web and email address are changing!
---------------------------------------------------------------------
| OLD:                            | NEW:                            |
| jeff at members.evolt.org          | evolt at jeffhowden.com            |
| http://members.evolt.org/jeff/  | http://evolt.jeffhowden.com/    |
---------------------------------------------------------------------





More information about the thelist mailing list