File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

reading Arabic character HttpRequest object

Abhijit Das
Ranch Hand

Joined: Sep 25, 2007
Posts: 156

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

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

Please help me.


Abhijit Das
SCJP 5.0 | SCWCD 1.5
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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.

I agree. Here's the link:
subject: reading Arabic character HttpRequest object
It's not a secret anymore!