From: Daniel DeLorme Date: 2007-07-27T07:54:38+09:00 Subject: Re: Converting escaped html to utf-8 Chris Worrall wrote: > Well, after some more googling, I found a solution. If anyone was > curious -- > > require 'cgi' > require 'iconv' > > n = "á" > n = CGI.unescapeHTML(n) > n = Iconv.conv("UTF-8", "ISO-8859-1", n) I'm surprised no one mentioned it but you could use require "rubygems" require "htmlentities" puts HTMLEntities.decode_entities("Ā Ĉ Ď") => Ā Ĉ Ď Daniel