File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in displaying unicode data from DB2 in JSP

Mina Syal
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have unicode data in DB2. I am trying to display it in my JSP. I am doing following:
name = rs.getString(1);
value = new String(name.getBytes("UTF8"));
<TD width="345"><%=value%></TD>

and i have set the character encoding to UTF-8 in jsp. It dose display japanese characters but not correctly.

I have checked the UTF-8 value which is coming from database is right by putting them in string variable.

Please respond.

Thanks in advance.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic