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

RE: no encoding specified when creating XHTML documents

From: Dave J Woolley <DJW@bts.co.uk>
Date: Thu, 24 Aug 2000 11:26:50 +0100
Message-ID: <81E4A2BC03CED111845100104B62AFB5824977@stagecoach.bts.co.uk>
To: "'www-amaya@w3.org'" <www-amaya@w3.org>
> From:	François Yergeau [SMTP:yergeau@alis.com]
> 
> 
> You must have been thinking of the HTTP default charset.
> 
	[DJW:]  I said served as text/html, which implies
	the use of an HTTP server and text/html content-type.

> > 	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=3D> (as well as an XML encoding declaration if XHTML).
> 
	[DJW:]  That's not the same thing.  No encoding means
	UTF-8 or UTF-16.  Amaya should store documents as 
	ISO 8859/1 unless told otherwise, as that is what most
	users will expect; i.e. it should default to storing in
	that encoding, not the XML default.  XML then requires 
	that the charset be included in the the PI and XHTML 
	suggests/requires its inclusion in the http-equiv hack.

	What apparently is happening is that it is defaulting to
	UTF-8, although I suspect it only works correctly if the
	display also uses UTF-8.  E.g. if I type GBP (currency
	symbols) the resulting document displays correctly in
	a simple text editor in CP 1252 (ISO 8859/1 superset), but
	the XML encoding says that it should be interpreted as
	UTF, which wouldn't correctly display.

	It's therefore either defaulting to 8859/1 or to the local
	GUI display encoding, not to the one it claims to be using.
[DJW:]  

-- 
--------------------------- DISCLAIMER ---------------------------------
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of BTS.


>  
Received on Thursday, 24 August 2000 06:27:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:32 UTC