File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem with unicode strings in dynamic jsps
 
Similar Threads
Problem in displaying unicode data from DB2 in JSP
Creating an HTML table in a Bean
problem with unicode database web application
can you help with this sql statement to insert checkbox data using JSP?
utf8 to unicode..from browser to oracle db