[Typo3-dev] xhtml, xml prologue
Wolfgang Klinger
wolfgang at stufenlos.net
Sun Mar 28 20:02:06 CEST 2004
*hiya!*
---
<?xml version="1.0" encoding="XXX"?>
<DOCTYPE...>
<html> ....
---
This so called xml prologue causes problems in certain browsers
(e.g. IE 6).
The solution for this in 3.6 seems to be to swap the <?xml stuff for
the doctype, what's rather odd.
The following is stated in the XHTML definition
(see: http://www.w3.org/TR/xhtml1/#normative)
---
Such a declaration is required when the character encoding of the
document is other than the default UTF-8 or UTF-16 and no encoding was
determined by a higher-level protocol.
---
So my suggestion is to skip the xml prologue (if not explicitly
claimed) and use this "higher-level protocol" (= http) to set the
appropriate character encoding, either through PHP with
---
header ('Content-Type: text/html; charset=ISO-8859-1');
---
and/or by the following settings in a local .htaccess file
---
AddType 'text/html; charset=ISO-8859-1' html
---
bye
Wolfgang
More information about the TYPO3-dev
mailing list