From: Jarmo Pertman Date: 2009-05-22T01:32:25+09:00 Subject: Re: Nokogiri not getting html body sometimes Thank you! It did the trick. Best regards, Jarmo Lui Core wrote: > i think you'd better set the encoding first. > > mech.get("http://www.imdb.com/title/tt1092016/") do |page| > page.encoding = 'ISO-8859-1' > #... the rest of ur code > end -- Posted via http://www.ruby-forum.com/.