File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes chinese characters become funny characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "chinese characters become funny characters" Watch "chinese characters become funny characters" New topic

chinese characters become funny characters

vi dj

Joined: Jul 04, 2008
Posts: 1
Hi all,

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 Tomcat. 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..
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

Hi vi dj welcome to Javaranch,
first things first, your name does does not seem to follow the Javaranch naming policy
please change it here

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
It's not a secret anymore!