cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheenle <chee...@perfectcenter.net>
Subject Strange problem about Cocoon between Linux and Solaris
Date Tue, 04 Sep 2001 09:11:52 GMT
Hi,cocoon-users
  I met a strange problem, I had two cocoon 1.8.2  product env, one is linux os, one is solaris
os, 
  And on solaris, the Cocoon.xml about charset is:
Cocoon Formatters
Default type = text/html
text/html: HTML Formatter
[ MIME type: text/html ]
[ Doctype: -//W3C//DTD HTML 4.0//EN http://www.w3.org/TR/REC-html40/strict.dtd ]


text/xhtml: XHTML Formatter
[ MIME type: text/xhtml ]
[ Doctype: -//W3C//DTD XHTML 1.0 Strict//EN xhtml1-strict.dtd ]

and linux os , the Cocoon.xml 

Cocoon Formatters
Default type = text/html
text/html: HTML Formatter
[ MIME type: text/html ]
[ Encoding: UTF-8 ]
[ Doctype: -//W3C//DTD HTML 4.0//EN http://www.w3.org/TR/REC-html40/strict.dtd ]


text/xhtml: XHTML Formatter
[ MIME type: text/xhtml ]
[ Encoding: UTF-8 ]
[ Doctype: -//W3C//DTD XHTML 1.0 Strict//EN xhtml1-strict.dtd ]


The problem is:
Under solaris , the html that Concoon provide is GB2312 Charset, but under linux , it's UTF-8
All of the env and config are same. 
How can I change the output html to GB2312 charset?
I have tried a few method, include change the ENV LANG and LC_ALL, add the follow line to
 cocoon.properties

"formatter.text/html.encoding = gb2312"

then, the output html was changed to Unicode like follow:

<td><a class="a3" href="http://www.test.com/index.xml"><font color="#FF6900"><b>&#27426;&#36814;&#25552;&#20379;&#26032;&#38395;&#32447;&#32034;</b></font></a></td>

How can I output GB2312 charset html under linux?

Thanks for your help!



            cheenle
            cheenle@perfectcenter.net


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message