I have a Rails app and I use Prawn gem there. I need to make it to generate pdf with Russian alphabet (mix of Russian and English words, in fact). I did a research and found some time ago it was fairly tricky. What about it now, how do I do that?
def about
respond_to do |format|
format.html
format.pdf do
pdf = Prawn::Document.new
pdf.text "не ну ни фига sebe"
send_data pdf.render
end
end
end
# encoding: utf-8
to a controller's file, but no luck. - Alan Coromano