Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Problem With Hebrew in POST Request Parameter to Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem With Hebrew in POST Request Parameter to Servlet" Watch "Problem With Hebrew in POST Request Parameter to Servlet" New topic
Author

Problem With Hebrew in POST Request Parameter to Servlet

Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

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

Joined: Oct 11, 2000
Posts: 1121

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem With Hebrew in POST Request Parameter to Servlet
 
Similar Threads
Assertion in java
Multilingual posting to servlet
Welcome files
Input Stream
Problem in Generic Method Declaration