Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading Arabic character HttpRequest object

 
Abhijit Das
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you go, this article was written specifically to answer your question: Character Conversions from Browser to Database.
 
Abhijit Das
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic