-
-
Notifications
You must be signed in to change notification settings - Fork 81
-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
In HtmlRenderer, escape_html() returns a string with encoding #<Encoding:ASCII-8BIT> #130
Comments
Thanks for reporting this! That's a good find. We should probably propagate the encoding of commonmarker/ext/commonmarker/commonmarker.c Lines 1150 to 1154 in fc1d7c0
(and in a few other places around there.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
when trying to override
HtmlRenderer#text
, I noticed that the encoding of the string after escape_html() is #Encoding:ASCII-8BIT:A workaround I used was to apply
force_encoding('utf-8')
before continuing processing of the string.The text was updated successfully, but these errors were encountered: