This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 18541
    
    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
 
Don't get me started about those stupid light bulbs.
 
subject: reading Arabic character HttpRequest object