2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: Allister Miller - theallister Unicode /uHHHH not being interpreted in field 2004-07-22 05:09 Hi I have a problem with report fields not interpreting unicode and just displaying the passed string as-is eg if a field contains the string "Test /u20ac", I am getting "Test /u20ac" output in the PDF. If this string is passed as a parameter then I get "Test ?" Is there a way of forcing a string to be 'unescaped' or reinterpreted in the jrxml definition. <parameter name="Test" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["Test string u0393 u0394 u03b6 u20ac"]]></defaultValueExpression> </parameter> is fine, but <textFieldExpression class="java.lang.String"><![CDATA[$P{Test}]]></textFieldExpression> with a database returned string of "Test string u0393 u0394 u03b6 u20ac" Is not interpreted. Any help would be greatly appreciated. Allister By: Allister Miller - theallister RE: Unicode /uHHHH not being interpreted in field 2004-07-27 01:25 I will investigate using a scriptlet, although it seems like overkill - unless anyone else has a suggestion? A Link to comment Share on other sites More sharing options...
mohammadkamaligmail.com Posted December 5, 2006 Share Posted December 5, 2006 I try to display Arabic data, and I am using the same fonts used in the unicode example, that is ARIAL.TTF or TIMES-ROMAN.TTF and encoding Identity-H. It works correctly for a static text or a text that supply from a parameter.<textFieldExpression class="java.lang.String"><![CDATA[$P{GreekText} + "n" + $P{CyrillicText}]]></textFieldExpression> </textField> When I try to get data from database it's not work in a good manner.I mean that when I use <textFieldExpression class="java.util.Date"> <![CDATA[$F{DEPDATE}]]> </textFieldExpression>It shows nothing with pdfEncoding="Identity-H" and shows ????With the other pdfEncoding. I appreciate your kindly reply. 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