Posted to jboss-user on behalf of a co-worker:
======================================================================
Hello,
We need to output Japanese and Chinese text in web pages. Unlike Weblogic,
JBoss/Tomcat does not seem to do the UTF-16 to UTF-8 conversion
automatically. Maybe we need to somehow tell JBoss that the page is encoded
as UTF-8, but we could not see how to do this.
The first thing we do at present is to
response.setHeader("Content-Type", "text/html; CHARSET=UTF-8");
or
response.setContentType("text/html; CHARSET=UTF-8");
But then
<%= myMultiLanguage %>
does not work -- JBoss/Tomcat just sends a garbled version of the UTF-16
down the wire to the browser.
<%= ourConvert(myMultiLanguage) %>
does work, where ourConvert() involves
byte utf8[] = unicode.getBytes("UTF-8");
However, ourConvert() then breaks Weblogic. This is a fairly serious issue
because it means that non-english applications need code that is conditional
upon the application servers and cannot be directly ported from Weblogic to
JBoss.
Any ideas would be much appreciated.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user