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 http://www.ietf.org/rfc/rfc2376.txt :-( ),
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
authoritative.

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

  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 <http://www.w3.org/TR/html4/charset.html#spec-char-encoding> :
  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.

Tom.




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