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

Send Japanese Characters from JSP to Servlet  RSS feed

 
Nitin Sinha
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i send Japanese characters which a user types in one of the input boxes of the JSP page to the Servlet.
When I do System.out.println of the value of the input box in the Servlet code(java class), it prints ???
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest reading this article: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/

Also note that System.out.println() may encode chars to bytes using an encoding which doesn't support CJK characters, so you should use a more Unicode-friendly testing method.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!