Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Stefan, I know that it is not very good solution, but it works for your sample.</p> <pre><code> &lt;textField&gt; &lt;reportElement x="49" y="0" width="359" height="38"/&gt; &lt;textElement&gt; &lt;font fontName="Arial" pdfEncoding="Identity-H" isPdfEmbedded="true"/&gt; &lt;/textElement&gt; &lt;textFieldExpression&gt;&lt;![CDATA[new String($R{title}.getBytes("ISO-8859-1"), "UTF-8")]]&gt;&lt;/textFieldExpression&gt; &lt;/textField&gt; </code></pre> <p>In case you know source codepage the convertation will help you. May be you can pass codepage in report and use it as parameter or variable in expression.</p> <p>The expression can be like this:</p> <pre><code> &lt;textFieldExpression&gt;&lt;![CDATA[new String($R{title}.getBytes($P{codePage}), "UTF-8")]]&gt;&lt;/textFieldExpression&gt; </code></pre> <p>or like this, if you can pass codepage in header of your properties file:</p> <pre><code> &lt;textFieldExpression&gt;&lt;![CDATA[new String($R{title}.getBytes($R{codePage}), "UTF-8")]]&gt;&lt;/textFieldExpression&gt; </code></pre> <p><strong>UPDATE:</strong><br/> After adding Arial font my irfonts.xml (%IREPORT_DIR%\ireport\fonts) has this content:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;fontFamilies&gt; &lt;fontFamily name="Arial"&gt; &lt;normal&gt;&lt;![CDATA[arial.ttf]]&gt;&lt;/normal&gt; &lt;bold&gt;&lt;![CDATA[arialbd.ttf]]&gt;&lt;/bold&gt; &lt;italic&gt;&lt;![CDATA[ariali.ttf]]&gt;&lt;/italic&gt; &lt;boldItalic&gt;&lt;![CDATA[arialbi.ttf]]&gt;&lt;/boldItalic&gt; &lt;pdfEncoding&gt;&lt;![CDATA[Identity-H]]&gt;&lt;/pdfEncoding&gt; &lt;pdfEmbedded&gt;&lt;![CDATA[false]]&gt;&lt;/pdfEmbedded&gt; &lt;/fontFamily&gt; &lt;/fontFamilies&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload