cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huber, Daniel" <Daniel.Hu...@TechniDATA.DE>
Subject RE: From Unicode to Form and back again
Date Wed, 08 Sep 2004 07:35:18 GMT
> Instead of that META-hack you'd better use a correct HTTP header. 
> Configure your serializer with mime-type like:
>
>    <map:serializer name="html"
>                    mime-type="text/html; charset=utf-8"
>                    logger="sitemap.serializer.html"
>                    pool-grow="2" pool-max="64" pool-min="2"
>                    
> src="org.apache.cocoon.serialization.XMLSerializer">
>      <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN
>      </doctype-public>
>      <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
>      </doctype-system>
>      <omit-xml-declaration>yes</omit-xml-declaration>
>      <omit-namespaces>yes</omit-namespaces>
>      <encoding>UTF-8</encoding>
>    </map:serializer>
> 
> UTF-8 in mime-type will put the charset information into HTTP header, 
> and <encoding/> will take care of the correct file encoding. 
> 
> 
> The <omit-xml-declaration/> will make MSIE to use its standards 
> compliance rendering mode.
> 
> I'm using to generally change _every_ serializer to use utf-8 
> only for easier standardisation.

Yes! You are right! That's much safer.
With the serializer configured this way, such a META-Line will be
inserted automatically anyway (besides of stating the correct encoding
in the HTTP-Header)

Thanks again!

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


Mime
View raw message