static text and unicode

By: padmini - padmini
static text and unicode
2003-02-17 05:01
Hi All ,

I want to display static text in chinese . Is this possible . I have tried creating a font with chiense pdf encoding
<reportFont name="Arial_Chinese_title" isDefault="true" fontName="Arial" size="16" pdfFontName="MHei-Medium" pdfEncoding="UniCNS-UCS2-H" isPdfEmbedded="true"/>

and then have a static text field like this
<staticText>
<reportElement x="0" y="10" width="515" height="20"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font reportFont="Arial_Chinese_title" size="16"/>
</textElement>
<text>&#31532;&#19968;&#37504;&#34892; &#20986;&#21475;&#35351;&#25910;&#25910;&#22949;&#36890;&#30693;</text>
</staticText>
This displays some junk characters when the pdf is generated . Please suggest a solution?

Regards
Padmini
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 10 months ago

0 Answers:

No answers yet
Feedback
randomness