Home
Analytics
Using UTF-8 encoded property file with Report Designer
djatnieks
I have been following the localization process described in the BIRT Field Guide to Reporting book.
I have Resource files to hold my text strings and am able to change the locale value to get localized values, e.g. myreport_en.properties, myreport_fr.properties, etc.
However, I now have a property file that contains UTF-8 encoded characters and those characters are not being displayed properly when I view the report in the Report Designer.
I am using version 2.3.1 of the Report Designer.
I can open the UTF-8 encoded property file in Firefox (after changing the character encoding to UTF-8) and it displays okay, so I know the property file contains the proper values.
What do I need to do to get this to work in BIRT??
Find more posts tagged with
Comments
dstoian
the .properties files should not be encoed in utf8... please read carefully here:<br />
<br />
<a class='bbc_url' href='
http://wiki.eclipse.org/BIRT/FAQ/Internationalization'>BIRT/FAQ/Internationalization
- Eclipsepedia</a><br />
<br />
and here:<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/wiki/BIRT:Internationalization/'>BIRT:Internationalization
- BIRT Wiki - BIRT Exchange</a><br />
<br />
<br />
These files must be ANSI encoded, with characters above 255 escaped as Unicode four-hex-character (uHHHH). I figured it is even safer to escape chars above 127.