Bookmark Topic Watch Topic
  • New Topic

Problem reading international characters from input form  RSS feed

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi experts,

I have a screen where user can supply any character in a textarea. A char may be ascii char or some japanese char.
On the server side I am trying to read input string by request.getParameter() method; And then I am setting this string into a preparedstatement to store value in database.
I have mentioned charset of html page as utf-8. Also, My database has been configured to store utf encode chars (And While setting up the connection I am setting the correct encoding UTF to specify the client encoding, results encoding etc)

When I read back the string on the screen. I do not see what I entered. However ascii characters are being read back from database and being shown on screen properly.

Please tell me where am I missing?
[ May 12, 2008: Message edited by: Pushker Chaubey ]
 
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!