I have a report and a subreport with a resource bundle for french internationalisation. No error nor warning are thrown, but when I use this report to create a pdf, weird char appears, because of an encoding mistake (é for é is an example).
I am still investigating on that issue, but I guess it is subreport related.
Several precisions:
- I do not know why, but the properties files are utf8 encoded, and the reader of the resource bundle is overriden (and I am not allowed to change that 🙁 ).
- the special character look fine in the main report; the problem only occurs in the subreport section. (and everything come from the same property file)
Ok problem solved:
In the java file, after overriding whatever needed on the resourcebundle (for me: UTF-8 as input encoding), you do:
Well, in the JRXML file, do NOT forget to pass the resource bundle to the subreports that need it: