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 reading Arabic character HttpRequest object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "reading Arabic character HttpRequest object" Watch "reading Arabic character HttpRequest object" New topic
Author

reading Arabic character HttpRequest object

Abhijit Das
Ranch Hand

Joined: Sep 25, 2007
Posts: 156
hi,

I want to read the Arabic font from the HttpServletRequest object. I have inserted a Arabic word in a input control and send the data in the Server (JBoss).
But, I have got the garbage value by using
request.getParameter("inputControlName");

Again,I want to store the the Arabic string into the mySQL 4.1 datablase.

Please help me.

Thanks

Abhijit Das
SCJP 5.0 | SCWCD 1.5
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

Here you go, this article was written specifically to answer your question: Character Conversions from Browser to Database.
Abhijit Das
Ranch Hand

Joined: Sep 25, 2007
Posts: 156
Hi Paul,

I have gone through the article. But, I need the explanation about the splecailly, Arrabic caharacter. How to get the the character in server end and store/retive into/from the MySQL 4.1

the Arabic labels in my HTML from is correctly comming in the browser by setting response.setCharacterEncoding("UTF-8") in my servlet;
so, I need to work on the arabic character in the input box in my form.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading Arabic character HttpRequest object