Closed yenshirak closed 5 months ago
@mathieujobin done
@unixmonkey @mileszs Can we cut a release with this fix ?
This is now released in version 2.8.0 of the Wicked PDF gem. Thank you so much for your help!
Please let me know if you have any issues!
We get the following error after replacing Sprockets with Propshaft:
ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8)
This fix resolves the issue.
Propshaft::Asset#content returns an ASCII-8BIT encoded string because it's using File::binread under the hood so the encoding needs to be set to UTF-8 if it's a JS or CSS file.