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 umlat character problem 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 "umlat character problem" Watch "umlat character problem" New topic
Author

umlat character problem

praveen kumar gowda
Greenhorn

Joined: Feb 20, 2012
Posts: 23
i have database which consists of data which includes umlat characters...so when i fetch the data from the database and trying to display it on jsp,it is showing some different vaule,say for example,

Hardware prüfen

On internet explorer this displays as

Hardware prüfen

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Apparently the encoding isn't set correctly somewhere. Best practice these days is to use UTF-8 everywhere. Is the DB set to use that? Are you setting the Content-Type header in the JSP correctly?
praveen kumar gowda
Greenhorn

Joined: Feb 20, 2012
Posts: 23
Hi Tim,


is it required to set both DB and application side?
please let me know how to set ...
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Yes, you need to handle it with the same encoding everywhere. Check the documentation of whichever DB you're using for how to do that. Generally, that needs to be done when the DB is first created.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: umlat character problem
 
Similar Threads
communication port
Questions on Part 2
communication port
how to print data from a java application
[SOLVED] This is going to drive me nuts