File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 1135

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: 1135

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem With Hebrew in POST Request Parameter to Servlet