jessedoyle / prawn-icon

Easy icons for Prawn.
Other
28 stars 15 forks source link

Prawn::Errors::IncompatibleStringEncoding error when using the table_icon #26

Closed MicahBrown closed 7 years ago

MicahBrown commented 7 years ago

I get this error when trying to generate an icon for a table (using pdf.table_icon("fa-beer")):

Prawn::Errors::IncompatibleStringEncoding:
       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
       .

Here's my gem versions:

prawn (2.1.0)
prawn-icon (1.1.1)
prawn-table (0.2.2)

I'll try to make a spec when I have time.

MicahBrown commented 7 years ago

There's nothing to see here :)

The issue was with my code. I was trying to interpolate the string into another cell content string, which caused the error.