search for: one_pag

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

Did you mean: one_page
2008 Jul 17
3
Convert data to utf-8
...9;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 encoding should be utf-8 (as stated by firefox page''s properties), instead one_page.content_type is "text/html; charset=ISO-8859-1" and displaying text content gives wrong accent conversion. Second prob...