W3C home > Mailing lists > Public > www-validator@w3.org > May 2003

Problem with XHTML validation

From: Doug Ewell <dewell@adelphia.net>
Date: Sun, 4 May 2003 21:47:04 -0700
Message-ID: <007901c312c1$62d4b0c0$7e434244@anhmca.adelphia.net>
To: <www-validator@w3.org>

Hello gurus,

I've found a problem with the XHTML 1.0 validation service provided at
<http://validator.w3.org/>.  I created a bare-bones XHTML document in
UTF-8, as follows:

-----8<-----cut here-----8<-----cut here-----8<-----

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>Minimal XHTML document</title>
This is a minimal XHTML 1.0 document. ☺

-----8<-----cut here-----8<-----cut here-----8<-----

Note the non-ASCII character (U+263A WHITE SMILING FACE) in the body

When I use the "Local File" option of the validator, I get the following

"Sorry, I am unable to validate this document because on line 12 it
contained one or more bytes that I cannot interpret as us-ascii (in
other words, the bytes found are not valid values in the specified
Character Encoding). Please check both the content of the file and the
character encoding indication."

It's complaining about the character U+263A; if I remove it, the file
validates.  But notice that I declared the document to be UTF-8 in TWO
different ways, in the XML declaration and again in the "meta
http-equiv" statement.  Yet for some reason the validator is still
treating the file as US-ASCII.

Now, if I upload the document to my Web site and validate it from there,
by URI, everything works fine.  So there is some discrepancy between the
way the validator handles a file referenced by URI and the same file
read from a local disk.

Please copy any responses to me directly, as I am not subscribed to the


-Doug Ewell
 Fullerton, California
Received on Monday, 5 May 2003 00:56:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:37 UTC