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

encoding: not always required

From: Neil Zanella <nzanella@cs.mun.ca>
Date: Thu, 26 Jun 2003 02:32:53 -0230 (NDT)
To: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0306260230180.1334-100000@garfield.cs.mun.ca>


I have a document encoded in ASCII (a subset of UTF-8).
The XML 1.0 specification states:

It is also a fatal error if an XML entity contains no encoding declaration 
and its content is not legal UTF-8 or UTF-16.

However, the validator should therefore validate correctly XHTML documents
starting with <?xml version="1.0"?> followed by a proper XHTML 1.0 DTD
followed by the actual content.

However the validator.w3.org program insisted that I ought to specify it,
but that's not what the XML standard says, right?

Thanks for the clarification,

Received on Thursday, 26 June 2003 01:22:53 UTC

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