Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

jasper report problem

  Asked By: Hisham    Date: Dec 21    Category: Java    Views: 1201
  

I 'm going to use Jasper Report with iReport as report tools. I used it with Oracle 9i and UTF8 as encoding. But I have problem to use farsi in reportting.In IReport viewer the farsi character showing good but when use this report in jsp page the ? character replace with farsi character. I change encoding of .jrxml file to UTF8 but I soon have the this problem.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Faiza Mian     Answered On: Dec 21

This may help you:


JasperExportManager.exportReportToHtmlFile(jasperPrint,
htmlOutput .getPath());
String fileName = htmlOutput.getName();
String byets = FileUtil.read(htmlOutput);
String reportResult = new String(byets.getBytes(),
"UTF-8") ;

reportResult is an String in UTF-8 encoding.

 
Answer #2    Answered By: Felix Gray     Answered On: Dec 21

You can pass Farsi values by parameters to Jasper Reports engine for
solving this problem.

 
Didn't find what you were looking for? Find more on jasper report problem Or get search suggestion and latest updates.




Tagged: