Has any one ever tried international characters support with jboss3.2.1/jetty?
Please let me know.
If this is an existing known problem i will have to look for some other solution that can reliably work with international character sets.
Existing, but unknown for developers :)
i tryed - JBoss works only with 8859-1 charset. It does not matter what Locale in OS is used.
Hi Dmitry !
The app I'm working on has to support entry and
display of asian characters (Japanese and Chinese).
I'm currently deploying this on JBoss 3.0.7, but
perhaps this will also help for 3.2.1 (the following
applies to the Jetty web server which comes with
JBoss, don't know what you're using so YMMV).
Adding the following to the head of my JSPs was
sufficient to display asian text correctly:
<%@ page contentType="text/html; charset=UTF-8" %>
(this is similar to what you did in your situation)
But in order to enter Asian text correctly at the
browser and have it received correctly by my
application at the server side, I had to "hack"
a Jetty-related property on the java command line:
This changes the character set which Jetty uses to
process named parameters coming in with HTTP
requests. Without this, the text is saved (then later
displayed) as junk. Perhaps setting this property
to "koi8-r" will help you. Or perhaps just using UTF-8
will do as well ?
According to a post I found from Greg Wilkins, the
above property is supposed to be used to change
the "alias" by which the ISO-8859 encoding is specified
(apparently, it can be "ISO_8859_1", "ISO-8859-1", etc
depending on the JVM used), but posts from others
say that they have have found it useful for supporting
non-8859-1 text as well.
In my case, I also had to set the national character
set of my Oracle database to UTF-8 in order for things
to work correctly.
Hope this helps.
it does not work, i tried all possible combinations and seems that Oleg is right -- the jetty only works with 8859-1.
Does anyone on the jboss/jetty team know if this is going to change any time soon?
Also, how about tomcat? Has anyone tried tomcat with international characters and can reliably say that it does work.
You probably need to go to the respective Jetty and Tomcat forums for your answers. The JBoss guys just provide the glue to bind the servlet container to the JBoss framework. The actual HTML and browser interaction is handled by the servlet container code which is not under the control of the JBoss Group. However, you might check in general JSP/servlet forums.
Java Guru has this to say on the matter:
Mortbay, the providers of Jetty code present this: