This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am trying to generate a pdf file using Jasper Report tool in NetBeans. The problem i am facing is that, we have hindi entry in database..In order to show that data in JSP i have set page content to UTF-8 and its showing properly.
But while generating its pdf report, i am exporting the data in bytes using ServletOutputStream & in Jasper Report i am using 'Mangal' font..the point is it is not showing exact data as saved in database.
Description: Word 'Reflection' in DataBase is saved as :
And if you want to test whether a particular font will serve your purpose, I suggest using a much simpler test environment. Right now you have at least four places where problems could occur and you have no way of identifying which of them is causing the problem. For a start I would get rid of Jasper Reports and JSP and just display the value from the database in a simple Swing application using your chosen font.