permaculture playing cards*
The moose likes Servlets and the fly likes insert multi language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "insert multi language" Watch "insert multi language" New topic
Author

insert multi language

Sarath Koiloth Ramath
Ranch Hand

Joined: May 07, 2008
Posts: 52
I am entering an arabic word in a form,on submitting it calls a servlet.In the servlet i cannot get the correct value.I am getting like ??? this.I


what should i do to get the correct arabic word in the servlet....Please advice.....


J 4 Java
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41182
    
  45
What makes you think that you are getting the wrong characters? Where are you seeing the question marks?
[ November 17, 2008: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3219
Does your database support multi-byte characters?


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
Sarath Koiloth Ramath
Ranch Hand

Joined: May 07, 2008
Posts: 52
thanks for the replies..

I created a textbox,and i inserted a turkisk word(����) like dis.I print these word in a servlet and getting like this (��������).i made request.setCharacterEncoding("UTF-8").how will i get the same word in a servlet...Wat all things should i need to change.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41182
    
  45
Where did you print the characters - to a web page?

Was the page where you entered the characters encoded in UTF-8 as well? If memory serves, a browser will use the same encoding to send a form which was used to encode the page containing the form.
Sarath Koiloth Ramath
Ranch Hand

Joined: May 07, 2008
Posts: 52
i am printing it in the webpage as well as in tomacat console
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41182
    
  45
i am printing it in the webpage as well as in tomacat console

The console most likely can't handle most non-Western characters, so that doesn't mean much.

What's the answer to the second question, about the form page encoding?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: insert multi language
 
Similar Threads
Unable to read Arabic data
how to export PDF report within the Arabic and English data through jsp code.
Read Arabic text in Servlet
Storing Arabic language
UTF8 java + arabic