malma Posted October 9, 2014 Share Posted October 9, 2014 I have a report that I use to generate a PDF.My report .jrxml file contains a textField with a textFieldExpression. The expression is filled from a field which contains a string. Normally everything goes fine. But when the string contains a dot (.), the pdf gives an encoding error when I want to view it in a browser. (ERR_CONTENT_DECODING_FAILED)The error also occurs when I type the text containing the dot insde the textFieldExpression, without using the field.Here is a snippet of the jrxml containing the textField:<textField><reportElement x="320" y="0" width="160" height="20" uuid="f3f2f70e-3138-4834-840c-a87253f1dc30"/><textFieldExpression><![CDATA[$F{currentValue}]]></textFieldExpression></textField> So when currentValue is a string with a dot in it, I get the error.What could be the problem? 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