aspose file tools*
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
Author

chinese characters become funny characters

vi dj
Greenhorn

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
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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 .


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: chinese characters become funny characters