Re: [xml] setting the default charset ?

Le 30/07/01 15:08:46, Daniel Veillard a écrit :
   This is very consistent at the XML level. However if there is an
encoding declaration at the protocol level then it is authorithative
(I just discovered this in :-( ),
I consider this a serious mistake.

Some servers recode files on the fly, they do not modify their content (so
don't modify the encoding declaration).
That's the reason why the encoding declaration at protocol level is

[*] What's an HTML agent is supposed to do when it's been told a stream

  Comparing HTML and XML on this is purely useless. The way to handle
encoding is defined very differently

On the contrary, it's quite similar.
In <> :
  1. An HTTP "charset" parameter in a "Content-Type" field.
  2. A META declaration with "http-equiv" set to "Content-Type" and
     a value set for "charset".
  3. The charset attribute set on an element that designates an
     external resource.

First, look at a declaration at the protocol level, then a declaration
"hardcoded" in the stream.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]