• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

chinese characters become funny characters

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Bring out your dead! Or a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic