search for: utf8mechanize

Displaying 1 result from an estimated 1 matches for "utf8mechanize".

2008 Jul 17
3
Convert data to utf-8
Hello, I''m trying to find a solution to convert everything returned by mechanize to utf-8, no matter if the original page is utf-8 or iso and I really don''t know where to start from... agent = WWW::Mechanize.new { |a| a.log = Logger.new(File::join(RAILS_ROOT, "log/mechanize.log")) } one_page = agent.get("www.google.fr") My first problem is that one_page