aspose file tools*
The moose likes JSP and the fly likes problem with unicode strings in dynamic jsps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with unicode strings in dynamic jsps" Watch "problem with unicode strings in dynamic jsps" New topic
Author

problem with unicode strings in dynamic jsps

ralph johnson
Greenhorn

Joined: Feb 19, 2004
Posts: 1
Hi
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with unicode strings in dynamic jsps