2002 JI Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: J O M Okomba - okomba Problem with special characters from database 2003-10-23 01:52 I need to display '‰' (e.g. 2.2‰) in a report (pdf report) but jasperreport is ignoring the '‰' character (only displaying 2.2). The '‰' displays correctly when I put manualy, i.e: <textFieldExpression class="java.lang.String"><![CDATA["2.2‰"]]></textFieldExpression> But doesn't display when I retrieve data from database, i.e.: <textFieldExpression class="java.lang.String"><![CDATA[$F{data}]]></textFieldExpression> I thought the problem was with the JDBC driver but the data ($F{data}) displays correcly (with the '‰') in data retrieved and displayed in a browser. The xml file has encoding="UTF-8". Please help. 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