Jump to content

bad parameters encoding ?


nicomart

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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,

Carlo



Post Edited by carlobergoglio at 04/23/2009 09:12
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...