cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 黄 海冬 <lingererhu...@hotmail.com>
Subject How can I make IE display html in auto encoding utf-8?
Date Wed, 11 Feb 2004 09:19:10 GMT
<html><div style='background-color:'><DIV>
<DIV class=RTE>Hi,all:<BR>&nbsp;&nbsp;&nbsp; I want to use Chinese
chacter in the page and don't want it to be encoded as someting like &amp;#8983.<BR>So
I change configurations in web.xml:<BR>&nbsp;&nbsp; &lt;init-param&gt;<BR>&nbsp;&nbsp;
&lt;param-name&gt;container-encoding&lt;/param-name&gt;<BR>&nbsp;&nbsp;
&lt;param-value&gt;utf-8&lt;/param-value&gt;<BR>&nbsp;&nbsp;
&lt;/init-param&gt;</DIV>
<DIV class=RTE>&nbsp;&nbsp; &lt;init-param&gt;<BR>&nbsp;&nbsp;
&lt;param-name&gt;form-encoding&lt;/param-name&gt;<BR>&nbsp;&nbsp;
&lt;param-value&gt;utf-8&lt;/param-value&gt;<BR>&nbsp;&nbsp;
&lt;/init-param&gt; <BR>and I also change HTMLSerializer config in root sitemap.<BR>&nbsp;&nbsp;&nbsp;
&lt;map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html"
pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer"&gt;&nbsp;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp; &lt;encoding&gt;utf-8&lt;/encoding&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;/map:serializer&gt;</DIV>
<DIV class=RTE>Now I can see Chinese in the page,but IE still auto encode it with iso-8859-1,<BR>I
must change the encoding to "unicode" manully.How can I make IE auto select <BR>encoding
in "unicode"?<BR>the html generated list here:<BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;META
http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;</DIV>
<DIV class=RTE>Thanks in advance.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>roy huang<BR>guangzhou guangdong China.</DIV>
<DIV class=RTE><A href="mailto:roy_huang@nbmgroup.com">roy_huang@nbmgroup.com</A>&nbsp;or
<A href="mailto:lingererhuang@hotmail.com">lingererhuang@hotmail.com</A>&nbsp;&nbsp;
</DIV></DIV></div><br clear=all><hr>使用  <a href="http://g.msn.com/8HMBCNCN/2734??PS=">MSN
Messenger </a> 与联机的朋友进行交流 </html>

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


Mime
View raw message