daniele.cherchi Posted July 17, 2019 Share Posted July 17, 2019 Hi, i've a problem with a template where i put a special symbols. The special symbol has a unicode u2baf (https://www.htmlsymbols.xyz/unicode/U+2BAF). If i compile the report from jasper report there isn't problems, but when i compile and generate the pdf from java, i don't view the symbol.I've try with below solution but it found only with ArabicText. <parameter name="SymbolText" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA["u2baf"]]></defaultValueExpression> </parameter> <parameter name="ArabicText" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA["u0627u0646u0646u0649 u0644u0627 "+ "u0627u0641u0647u0645 u0627u0644u0644u063Au0629 "+ "u0627u0644u0639u0631u0628u064Au0629"]]></defaultValueExpression> </parameter> <title> <band height="782"> <textField> <reportElement x="100" y="50" width="150" height="100" uuid="902c6744-d711-43e6-a605-da7c621bb222"/> <textElement> <font fontName="Segoe UI Symbol" size="24"/> </textElement> <textFieldExpression><![CDATA[$P{SymbolText}]]></textFieldExpression> </textField> <textField> <reportElement x="100" y="150" width="100" height="60" uuid="c73b34f7-f6e3-4ca7-9cf9-74f6facb5bde"/> <textElement> <font fontName="DejaVu Sans" size="14"/> </textElement> <textFieldExpression><![CDATA[$P{SymbolText}]]></textFieldExpression> </textField> <textField> <reportElement x="100" y="230" width="100" height="60" uuid="c73b34f7-f6e3-4ca7-9cf9-74f6facb5bde"/> <textElement> <font fontName="DejaVu Sans" size="14"/> </textElement> <textFieldExpression><![CDATA[$P{ArabicText}]]></textFieldExpression> </textField> </band> </title>Please, help me to understand where i wrong.Thank you Link to comment Share on other sites More sharing options...
C-Box Posted July 23, 2019 Share Posted July 23, 2019 Try to set the PDF-Encoding to "IDENTITY-H" and be sure that you also have a FontExtension for your "Segoe UI Symbol" font with that encoding.The "DejaVu Sans" FontExtension should already be in classpath for your application, if not then check that also.hth + regardsC-Box 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