In iReport the two optiosn for encoding of an xml file are UTF-8 or IS0-8859-1. The issue arises when you use the pattern "wizzard" for text field boxes. When you use the pattern for currency, a specfic character is used as the marker for the currency symbol '¤'. This character is handled by the code, throuth the Xerces Dom parser. When trying to load the jrxml file, with this character in it, through the org.xml.sax parser, it throws an exception stating that the character is not a valid UTF-8 character. The locale seems to have no effect, nor the encoding, because when the xml file, that contains the erring character, is forced to be utf-8, the character breaks, and is changed into another, showing that it is not a valid UTF-8 character. An image is attached showing the invalid currency character coming up in the latest version of iReport.
Recommended Comments
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