Forum: Ruby bug in CGI::unescapeHTML?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ad590872e5d5e31e8d5fc3910ccebb3a?d=identicon&s=25 Esad Hajdarevic (Guest)
on 2007-07-05 06:06
(Received via mailing list)

I think there's a bug in CGI::unescapeHTML. Or am I doing something


will return "\343", which according to my screaming mysql utf-8 encoded
database is not a valid utf-8 sequence

The source of CGI::unescapeHTML reveals that all values < 255 are simply
translated to the ascii value using the value.chr


This topic is locked and can not be replied to.