yael Posted February 8, 2007 Share Posted February 8, 2007 Hi,I have problem with hebrew data.The JasperViewer display is good but if I'm save from ther to csv I get gibbrish data =(??????).in pdf I get an empty file.(if the data in english - it's save good).Thanks.:whistle: Link to comment Share on other sites More sharing options...
lucianc Posted February 8, 2007 Share Posted February 8, 2007 You can start by taking a look at the "unicode" sample shipped with the JasperReport project. You would need to:use the JRExporterParameter.CHARACTER_ENCODING when exporting to CSV to specify a Unicode encoding. Then you need to make sure that the application you use to open the CSV supports that encodingspecify proper pdfEncoding and pdfEncoding attributes so that a font that has Hebrew glyphs is used when exporting to PDF.[/ul] HTH,Lucian Link to comment Share on other sites More sharing options...
yael Posted February 8, 2007 Author Share Posted February 8, 2007 Thanks,Why I have to download Ant to running the example?If I'm running this example now I get in the console this:UnicodeApp usage: java UnicodeApp -Ttask -Ffile Tasks : fill | print | pdf | xml | xmlEmbed | html | rtf | xls | jxl | csv | run Link to comment Share on other sites More sharing options...
lucianc Posted February 9, 2007 Share Posted February 9, 2007 You can run most of the tasks in the sample by directly launch the application, but you will have to set the classpath and the correct arguments (check the ant build script to find out what these arguments are). However, the sample uses the Ant report compilation task, so you'll need to write some code to compile the report, unless you overcome your reluctance towards Ant (which I don't understand, since Ant is a very common Java build tool). Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now