From: Suraj Kurapati Date: 2006-12-27T03:40:56+09:00 Subject: Re: … unencoding troubles with FeedTools Robert Jones wrote: > I can't seem to unencode them. Stuff like ' > is ok- FeedTools::HtmlHelper.unescape_entities deals fine with them, but > these frickin … things are driving me nuts. > > Anyone able to give me an early Christmas present by helping me out? irb(main):005:0> "n …".gsub %r{&#(\d+);} do irb(main):006:1* [Integer($1)].pack('U*') irb(main):007:1> end => "n \342\200\246" irb(main):008:0> puts "n \342\200\246" n … => nil -- Posted via http://www.ruby-forum.com/.