Arabic Text in RTF file

0
Hi there, i have simple arabic text when i tried to display this with RTF file format it is showing Arabic in Reverse Order. Like الرياض is displayed as ضايرلا
in simple words "Apple" Displays "elppA" its a problem. i m embedding JRXML file code.

<columnHeader>
<band height="550">
<staticText>
<reportElement x="350" y="0" width="200" height="50" />
<textElement textAlignment="Right">
<font fontName="Arial" size="22" pdfFontName="ARIAL.TTF" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
</textElement>
<text><![CDATA[صاحب السمولالملكي]]></text>
</staticText>
</band>
</columnHeader>

Working with PDF is OK. BUT not working with RTF FILE format. did not checked with Others.
waqasahmedch's picture
Joined: Apr 27 2007 - 3:40pm
Last seen: 12 years 6 months ago

4 Answers:

0
lucianc's picture
7146
Joined: Jul 17 2006 - 1:10am
Last seen: 1 day 23 hours ago
0
Hi,

Have you looked at the supplied /demo/samples/unicode sample?
How is the Arabic text there displaying?
Is it correct in RTF?

Thanks,
Teodor
teodord's picture
4410
Joined: Jun 30 2006 - 9:00am
Last seen: 3 days 19 min ago
0
Yes i tried the same example in my application it is same for RTF. One more thing,,, The arabic Numbers should be printed as Arabic not latin. for example...
العدد 7 downward arrow is actually 7 in arabic, i m facing this problem while printing PDF report, although Numbers in JRXML file are in correct Arabic format, but when it come to generate PDF it change them to Latin Characters/Numbers.
waqasahmedch's picture
Joined: Apr 27 2007 - 3:40pm
Last seen: 12 years 6 months ago
0
Hi,

I don't think I understand what the problem is with numbers. If you have numbers in the Arabic text, it should show as numbers.
Anyway, our tests indicate that the same RTF file looks OK on some machines and not good on others. So it might be related to the RTF viewer application that you are using.

You should try attach some screen shots describing the problem you have.

I hope this helps.
Teodor
teodord's picture
4410
Joined: Jun 30 2006 - 9:00am
Last seen: 3 days 19 min ago
Feedback