Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

chinese characters become funny characters

 
vi dj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic