A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
chinese characters become funny characters
Joined: Jul 04, 2008
Jul 04, 2008 02:07:00
i have a problem with chinese character.
i send chinese character (繁簡自通 -> btw i dont know the meaning), but when my Action class receives it, the chinese characters turn out to be funny characters like this : ��?����?��??
my local is using
. if in my server.xml i put this: URIEncoding="UTF-8" in Connector tag, it CAN work.
BUT the problem is, in my production environment, i use Websphere, and i cannot set the same thing like above.
i tried to set 'AddDefaultCharset Off' on my httpd.conf, but it didnt seem to work..
can someone help me on this? i am at my wit's end..
Joined: Jun 06, 2007
Jul 04, 2008 05:38:00
Hi vi dj welcome to Javaranch,
first things first, your name does does not seem to follow the
Javaranch naming policy
please change it
Also check the weblogic manual to set the encoding to UTF-8.
Hope this helps
Asking Good Questions
I agree. Here's the link:
subject: chinese characters become funny characters
JBoss Language problem
Encoding type in J2ME
Problems viewing source files created on Mac
Need to store the Chinese character in the Java String variable from the ResultSet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013