Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Reading mixed chars (characters from various charset) from one single form.  RSS feed

 
Pushker Chaubey
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?

Thanks,
Pushker
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
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.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!