• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

insert multi language

 
Sarath Koiloth Ramath
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
arulk pillai
Author
Ranch Hand
Posts: 3387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your database support multi-byte characters?
 
Sarath Koiloth Ramath
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am printing it in the webpage as well as in tomacat console
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic