Nick T.
2014-May-18 04:51 UTC
Problem on reading a web page (no matter using Net:HTTP or nokogiri)
Currently I am trying to get some reference data from bet.hkjc.com/football/index.aspx?lang=ch&pageno=1 However, I could not read the content (page source) properly even though I used force_encoding or String.encode! after getting the response.body Same coding is working fine for other site, but just this site has some tricky things made ruby cannot read the page content correctly. Do anyone has idea on this? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3f40c55ca7a028ca4059727218db1ece%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.