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
{{ message }}
Repository navigation
unescape_html - Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8 #103
I encountered the same problem and it seems it could be an aliasing issue (or an issue with the loading order of the C extension) because unescapeHTML is working (by using the C implementation I guess):
Could be related to the changes made in #67 (previously the C extension was required before defining or aliasing unescapeHTML, now it's required after).
I just saw this bug (workaround). User-generated content was submitted with unprintable unicode characters to our Rails app; we were unable to display any page that excerpted that content.
Activity
baptistejub commentedon Feb 26, 2026
I encountered the same problem and it seems it could be an aliasing issue (or an issue with the loading order of the C extension) because
unescapeHTMLis working (by using the C implementation I guess):Could be related to the changes made in #67 (previously the C extension was required before defining or aliasing
unescapeHTML, now it's required after).pushcx commentedon Mar 12, 2026
I just saw this bug (workaround). User-generated content was submitted with unprintable unicode characters to our Rails app; we were unable to display any page that excerpted that content.
baptistejub commentedon Mar 17, 2026
Should be fixed by #110
Fix unescapeHTML CompatibilityError in pure-Ruby fallback
hsbt commentedon Jun 23, 2026
#110 fixed only C implementation. I added that to pure Ruby fallback at #127
[ruby/cgi] Fix unescapeHTML CompatibilityError in pure-Ruby fallback
[ruby/cgi] Fix unescapeHTML CompatibilityError in pure-Ruby fallback
Update rubygem-cgi to version 0.5.2 / rev 2 via SR 1380830