![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
danutzzza
-
Posts
3 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by danutzzza
-
-
The database is Oracle. I am sure that it stores the romanian caracters corectly beacause they are displayed correcty by my web application that reads them from the database.
I have created a jrxml report that hase an sql that selects data from the database. I have set the report encoding to iso-8859-2:
<property name="ireport.encoding" value="ISO-8859-2" />
I fill the report like this:
parameters.put(JRParameter.REPORT_LOCALE, new Locale("ro", "RO","") );
jasperPrint = JasperFillManager.fillReport( jasperReport, parameters, conn);
And then I export the report to html like this:
JasperExportManager.exportReportToHtmlFile(jasperPrint, htmlReportsPath + reportName + ".htm");
When I look at the html source the romanian caracters are all replaced by question marks (?)
What can I do to display them correctly?
Thank you,
Dana
-
Hello,
A have a report with a database datasource. The database charset is iso-8859-1. The html result of the report does not show correctly the romanian characters (like ş, ţ, etc). What can I do?
Thank you,
Dana
Database charset problem
in Products
Posted
Hello,
I also tried to modify the Jasper source JRHtmlExporter, and I added the following line to the exportReportToHtmlFile method:
exporter.setParameter(JRExporterParameter.CHARACTER_ENCODING, "ISO-8859-2");
but the result was the same: a lot of question marks in the output.
Dana