Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get utf-8 data from query string in JSP

 
shahab khan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to get utf-8 data from query string in jsp page therefore I have written following simple JSP page

But I am getting garbaage instead of utf-8 data.


I want to know how to get utf-8 data from query string in JSP
 
Tim Moores
Bartender
Posts: 2674
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But I am getting garbaage instead of utf-8 data.

How do you know that? Where does out.println print to - something that's capable of displaying UTF-8? Most console aren't.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic