-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect characters #432
Comments
sounds similar to #430 |
Yes, maybe this is not an issue anymore @kishorech0817 is this still an issue? |
Had a similar issue, solved by setting the encoding to utf-8: html.force_encoding('utf-8')
premailer = Premailer.new(
html,
with_html_string: true,
input_encoding: 'utf-8'
) |
can you make a PR to add to the readme to recommend how ppl should set this up ? |
I think that this issue is specific to some setups, it would be interesting also to understand the causes (like nokogiri version (which can't be below 1.16 atm, source file, variable encoding, etc.) |
Recently, I observed my text has incorrect characters after using the Premailer with adapter
adapter::nokogiri_fast
.Issue:
It returns "Wow â\u0080¦ I got paid this morning I will b over Iâ\u0080\u0099m so so sorry\ngotta get a new lock that lock has been giving me nothing but\nproblems and I have to update my card information my job is crazy\nup to something I think .. Anyways see ya shortlyÂ".
Is it a new issue here?
Premailer Version: premailer (1.11.1)
The text was updated successfully, but these errors were encountered: