W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2000

RE: no encoding specified when creating XHTML documents

From: (wrong string) <yergeau@alis.com>
Date: Wed, 23 Aug 2000 15:11:14 -0400
To: <www-amaya@w3.org>
Message-ID: <001801c00d35$e93ef920$788011ac@fyergeau2.intra.alis.com>
Dave J Woolley wrote:
> 	If the document is actually served as HTML, 8859/1
> 	is the default,

There is no default charset in HTML. From the HTML 4.01 spec [1]:

   'Therefore, user agents must not assume any default
    value for the "charset" parameter.'

You must have been thinking of the HTTP default charset.

> 	Amaya is an [X]HTML tool, it should default to 8859/1.

Bad idea, Amaya doesn't know if the document will be served by HTTP or
otherwise, so it cannot assume this default.  It should always add a
<meta... charset=> (as well as an XML encoding declaration if XHTML).

> 	Also, in HTML, lang is supposed to be orthogonal, to
> 	encoding, so it can, at best, be used as hint to the
> 	encoding for newly created documents.

Right.

--
François Yergeau
Received on Wednesday, 23 August 2000 15:14:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:24:27 GMT