W3C home > Mailing lists > Public > www-validator@w3.org > March 2002

Re: Encoding Requested Even When XML Decl. Is Ommited

From: Karl Ove Hufthammer <huftis@bigfoot.com>
Date: Mon, 04 Mar 2002 13:10:44 +0100
Message-Id: <Xns91C7860EC1F23huftis@ID-99504.news.dfncis.de>
To: www-validator@w3.org
Masayasu Ishikawa <mimasa@w3.org> wrote in

> According to RFC 3023, if an entity
> is received with the charset parameter omitted, the default
> charset value is "us-ascii" in the case of "text/xml",

And this even applies to XML documents with the encoding set in
the XML declaration. For example, if you this XHTML document
sent as 'text/xml' over HTTP:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      <meta http-equiv="Content-Type" content="text/html;
charset=utf-16" />

The character encoding is *neither* 'iso-8859-1' nor 'utf-16',
but 'us-ascii'. (This will no doubt lead to many
interoperability problems.)

Karl Ove Hufthammer
Received on Monday, 4 March 2002 07:12:22 UTC

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