You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Hoofe <ko...@hoofe.de> on 2004/09/17 11:40:36 UTC

Re: Encoding problems

> 
> Don't know exactly about Opera, but M$IE definitely doesn't evaluate
> 
>            <?xml version="1.0" encoding="..."?>.
> 
> Instead it wants to get the correct HTTP header's charset information.

Internet Explorer has an unfortunate bug involving the xml prolog declaration.
If there is anything on the first line before the doctype, IE6 will switch into
"quirks" mode. This means that using an xml prolog delaration (<?xml
version="1.0" encoding="UTF-8"?>) will cause the behavior. An HTML comment, even
an empty one, will do the same.

-> http://www.positioniseverything.net/articles/doctypes.html

Put this into your sitemap.xmap to produce output IE understands:

<map:serializer  ... >
    <omit-xml-declaration>yes</omit-xml-declaration>
</map:serializer>   




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Encoding problems

Posted by "Volkm@r" <pl...@arcor.de>.
Christian Hoofe wrote:
> [...]
> Put this into your sitemap.xmap to produce output IE understands:
> 
> <map:serializer  ... >
>     <omit-xml-declaration>yes</omit-xml-declaration>
> </map:serializer>   

That's exactly what I already suggested in the second posting of this 
thread. (Did you read it?).
But only omitting the xml declaration is not yet a replacement for an 
HTTP headers' charset information that needs to be given using

    mime-type="text/html; charset=utf-8"

in the serializer's configuration.
-- 
Volkmar W. Pogatzki


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org