From: Lionel Bouton Date: 2007-07-07T01:31:08+09:00 Subject: Re: Bug in CGI::unescapeHTML? Paul Battley wrote the following on 05.07.2007 23:10 : > > If I understand HTML correctly, it is pretty much a bug, although it's > perhaps more of a reflection of Ruby's limited encoding support (which > has already been well discussed on this list!). > I tend to agree. I just fixed a bug in one of my apps where I blindly used CGI.unescapeHTML which, as the original poster mentionned, generates output that isn't welcomed by a system configured to use UTF-8 all the way, especially the database (PostgreSQL in my case)... Thanks for htmlentities, it saved my day. Lionel