Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with unicode strings in dynamic jsps  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to display unicode characters in my jsp web pages. It works well with <% String test="\u00fe\u00ea"; %> <%=test %>. But now I try to get this same 'test' value from database and display in my jsp.

1) I'm using postgres and
2) I simply insert into the database using - insert into mytable( test ) values('\\u00fe\u00ea').
3) I used -E UNICODE when I created my i18n database.
4) **problem**
when I read the value from the database the output is just the normal string with each unicode caracter represented as normal string of 6 character length(\uxxxx)
Any Suggestions or comments?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!