I'm using ruby, prawn, and prawnto to dynamically generate pdf's containing text in other languages. I can't seem to get any text in languages with non-english characters to show up. It doesn't throw any errors...just shows a bunch of dashes instead of characters. Prawn brags on its homepage about UTF-8 support so I don't see why this is a problem. I'm using ruby 1.8.6 (engineyard).
相关问题
- Question marks after images and js/css files in ra
- Correctly parse PDF paragraphs with Python
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Set BaseUrl of an existing Pdf Document
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
Here is a example of prawn with unicode. Download the font from here. http://www.siyabas.lk/files/iskpota.ttf
For Unicode to work you need to load a TTF font that has the characters you require.
The default Helvetica font only supports ASCII (plus a few extras).