nicomart Posted April 23, 2009 Share Posted April 23, 2009 Hi guys, I have a problem when passing parameters to my report. I use my compiled .jasper file in a webapp with a javaBean datasource. I'm using an HashMap to provide some parameters such as the title of my report. When it runs on a Linux environment, letters such as "é" or "è", etc. (yes, sorry, I'm French ;) ) are replaced by things such as "é". My static fields with accents are ok. My reports were designed using IReport 3.1.1 with UTF8 encoding specified in the ireport.conf default options. I am pretty sure this is a bad encoding problem, but how to fix it ? any idea would help... Nico Post Edited by nicomart at 04/23/2009 07:04 Link to comment Share on other sites More sharing options...
carlobergoglio Posted April 23, 2009 Share Posted April 23, 2009 Hi Nico, Have you tried to maintain the default configuration of iReport? I've make no changes in ireport.conf and these special characters are well reported. When you pass values to iReport from Java use always String.valueOf() method and check that you've declared fields on iReport as java.lang.String.Hope this helps,CarloPost Edited by carlobergoglio at 04/23/2009 09:12 Link to comment Share on other sites More sharing options...
nicomart Posted April 23, 2009 Author Share Posted April 23, 2009 Hi, I tried without the custom conf, but then I had problems with the static text fields in IReport. I'll try to add the String.valueOf() in the next version of the project, and I'll keep you informed of the result when publishing on the server. thx Nico 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