search for: ghi123

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

Did you mean: ga2123
2013 Mar 21
0
Problems parsing page encoded in Shift-JIS
...ch("ul#test li").each {|item| item.search("a").each {|a| a.content}.join(" > ") } } I''d expect this to return ["abc > def > ghi", "abc > def > ghi", "abc > def > ghi"] but it returns ["abc > def > ghi123 > abc > def > ghi123 > abc > def > ghi123"]. However, if I save the page.body and then do page = Nokogiri::parse(saved_body) and repeat the code, then it behaves as expected. This is a simplified example. The actual HTML is (you can get this at "http://www.amazon.co.j...