You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc = Nokogiri::HTML(open('http://www.ropetacklecentre.co.uk/'))
>> doc.meta_encoding
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
from /Users/boncey/.rvm/gems/ruby-1.8.7-p358/gems/nokogiri-1.5.2/lib/nokogiri/html/document.rb:9:in `meta_encoding'
from (irb):7
from :0
When trying to fetch the encoding type from http://www.ropetacklecentre.co.uk/ I get the following error:
The HTML source is at https://gist.github.com/2379007
It looks like their
<meta http-equiv="Content-type" content="text/html; utf-8" />
is a bit dodgy.Thanks, Darren.
The text was updated successfully, but these errors were encountered: