You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! Thanks for sharing this project! It has been very helpful.
Imgkit works very well for the majority of cases. My issue lies when I send it characters that are greater than 0x7f, which I would like to be interpreted using latin-1.
To indicate I would like to use latin-1, I've passed options with encoding set to latin-1 to my from_string function call: imgkit.from_string(htmlString, output.png, options={'encoding':'latin-1'})
I'm getting an UnicodeDecodeError on line 220 of imgkit.py. Looking at the code, it appears to be forcing utf-8.
Perhaps "from_string" does not use options? Is there something else I'm doing wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi there! Thanks for sharing this project! It has been very helpful.
Imgkit works very well for the majority of cases. My issue lies when I send it characters that are greater than 0x7f, which I would like to be interpreted using latin-1.
To indicate I would like to use latin-1, I've passed options with encoding set to latin-1 to my from_string function call: imgkit.from_string(htmlString, output.png, options={'encoding':'latin-1'})
I'm getting an UnicodeDecodeError on line 220 of imgkit.py. Looking at the code, it appears to be forcing utf-8.
Perhaps "from_string" does not use options? Is there something else I'm doing wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: