Re: Wrong XHTML encoding

On Sat, 10 Jul 2004 18:00:47 +0200
Torsten Bronger <bronger@physik.rwth-aachen.de> wrote:

> 
> Halloechen!
> 
> When I open test.xhtml with the following contents
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>        "../xhtml11.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
>   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
>   <title>Artikel</title>
>   <meta name="generator" content="amaya 8.6, see http://www.w3.org/Amaya/" />
> </head>
> 
> <body>
> </body>
> 
> add some accented characters and save it as the same XHTML file,
> the encoding remains latin-1, but no
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> 
> is generated.

Amaya doesn't generate the XML declaration when there is a XHTML DOCTYPE, 
because it's not strictly necessary and some browsers are not confortable with this
XML declaration.

Regards
     Irene.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Monday, 12 July 2004 09:06:03 UTC