Re: Display correctly an UTF 8 encoded string

246 views
Skip to first unread message

Christopher Jaeger

unread,
Jul 2, 2012, 1:57:44 PM7/2/12
to prawn...@googlegroups.com
I would follow the advise in this stack overflow, be sure you are including the font files you want to use, as most fonts don't just support Arabic out of the box.

http://stackoverflow.com/questions/2104814/prawn-prawnto-rails-pdf-generation-utf-8 

On Mon, Jul 2, 2012 at 8:30 AM, Stephane <stephan...@belighted.com> wrote:

I'm currently using ruby 1.9.2p290, rails 3.1.3 and prawn 0.12.0

I try to render a pdf which will show arabic strings. These strings are written in rtl direction.

The result obtained show only characters with their regular versions (uppercase) but i need to have initial, medial or final characters according to their positions in words (as they could be displayed differently).

Someone could help me to fix this problem ? Can Prawn handle this?


Ahmed Nasser

unread,
Aug 1, 2012, 9:10:54 AM8/1/12
to prawn...@googlegroups.com
I developed this gem a couple of years ago. See if it helps.


Join us in this thread to make it work:


Thanks,
Ahmed.
Reply all
Reply to author
Forward
0 new messages