thinreports / thinreports-generator

A Ruby library for Thinreports
https://github.com/thinreports/thinreports
MIT License
294 stars 48 forks source link

how to generate data has unicode characters? #94

Closed marknguyen85 closed 5 years ago

marknguyen85 commented 5 years ago

I want to write unicode text to file an generate to pdf but i've got error.

Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts.

PLz help me. thanks for the support.

hidakatsuya commented 5 years ago

The error is an error that has occurred in prawn.

The error occurs when you give a text-box that is set to a Latin-font such as Helvetica a character that can not be converted to Windows-1252 encoding.

Try using IPAGothic or IPAMincho to the text-box instead.

marknguyen85 commented 5 years ago

My issue have been resolved with embed unicode font.

cavoixanha commented 3 years ago

when use vietnamese error đẹp -> image how to fix it (i already use IPAGothic or IPAGothic is don't work show image above)