Getting Prawn::Errors::IncompatibleStringEncoding
dnara opened this issue · comments
It does not encode non-alphabet characters.
Your document includes text that's not compatible with the Windows-1252 character set.
If you need full UTF-8 support, use external fonts instead of PDF's built-in fonts.
According to this (see: jessedoyle/prawn-icon#44), the prawn-table needs to be pointed as below:
# in Gemfile
gem 'prawn-table', git: 'https://github.com/prawnpdf/prawn-table.git'
The Gemfile in my app is already pointed as above, but it still does not work.
Maybe you need to update your Gemfile?
I end up downloading ttf files and set them as defaults font in the initializer as described in the documentation.
I removed prawn-table gem from my app and it works without it.
Pretty sure the built-in PDF fonts don't support all characters and you must provide your own font.