Jump to content
We've recently updated our Privacy Statement, available here ×

Problem with special characters from database


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...