[TYPO3-german] XML-Prologue im IE6 verhindern

Marcus Krause marcus.krause at tu-clausthal.de
Mon Jan 14 10:02:05 CET 2008


gc media wrote:
> vielen dank (verspätet)!
> 
> @Stefano Kowalke :
>> Note that in this example, the XML declaration is included. An XML
>> declaration like the one above is not required in all XML documents.
> ....
>> Such a declaration is required when the character encoding
>> of the document is other than the default UTF-8 or UTF-16."

Hmmh.

RFC 3023:
Omitting the charset parameter is NOT RECOMMENDED for text/xml.  For
example, even if the contents of the XML MIME entity are UTF-16 or
UTF-8, or the XML MIME entity has an explicit encoding declaration,
XML and MIME processors MUST assume the charset is "us-ascii".

Damit also die Definition von W3C bzgl. dem Prolog zutrifft, müßte der 
Content-Type des Dokumentes text/application sein.


Aber lt. RFC 3023:
If an XML document -- that is, the unprocessed, source XML document
-- is readable by casual users, text/xml is preferable to
application/xml.  MIME user agents (and web user agents) that do not
have explicit support for text/xml will treat it as text/plain, for
example, by displaying the XML MIME entity as plain text.
Application/xml is preferable when the XML MIME entity is unreadable
by casual users.


->
So allgemein kann man die Aussage bzgl. dem Weglassen des Encodings und dem dann 
angewendeten UTF-8 nicht stehenlassen.


Gruß,...
...Marcus.


More information about the TYPO3-german mailing list