Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem With Hebrew in POST Request Parameter to Servlet

 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,
I have written a java servlet, i.e. a class that extends javax.servlet.http.HttpServlet.
The servlet is deployed to a WebSphere Application Server (WAS version 7)
I have written another java class with JDK 1.5 that sends a POST request to the servlet.
If the POST request parameters contain Hebrew, then the servlet sees the Hebrew as a string of question marks (?).
How do I get the servlet to see the Hebrew that is sent in the POST request?
And for your information, I have read the JavaWorld article entitled: Dodge the Traps Hiding in the URLConnection Class

Cheers,
Avi.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answering my own post (as usual ;-)

Turns out that the WAS host machine does not have any Hebrew fonts installed, hence the log file shows question marks instead of Hebrew characters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic