• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send Japanese Characters from JSP to Servlet

 
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: 21878
36
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!