[Yanel-dev] New XMLDB repository

Andreas Wuest awuest at student.ethz.ch
Mon Feb 12 21:40:03 CET 2007


Hi

On 12.2.2007 21:02 Uhr, Michael Wechner wrote:

> This is also because one should use application/xml and not text/xml

No, the reason is the following:

"Authors should also be aware of the difference between
'application/xml' (and for that matter 'application/xhtml+xml' as well)
and 'text/xml' with regard to the treatment of character encoding.
According to "3.1 Text/xml Registration" of
[RFC3023],
if a text/xml entity
is received with the charset parameter omitted, MIME processors and XML
processors MUST use the default charset value of
"us-ascii"[ASCII].
This default value is authoritative over the encoding information
specified in the XML declaration, or the XML default encodings of
UTF-8 and UTF-16 when no encoding declaration is supplied, so omitting
the charset parameter of a 'text/xml' entity might cause an unexpected
result.
As mentioned in [RFC3023], the use of the charset
parameter is STRONGLY RECOMMENDED."

HTH.

-- 
Kind regards,
Andi



More information about the Yanel-development mailing list