Skip to content

Instantly share code, notes, and snippets.

@jmhodges
Created May 16, 2009 21:50
Show Gist options
  • Save jmhodges/112818 to your computer and use it in GitHub Desktop.
Save jmhodges/112818 to your computer and use it in GitHub Desktop.
# Nokogiri 1.2.3
→ irb -rrubygems -rnokogiri
irb(main):001:0> j.at('meta')
NameError: undefined local variable or method `j' for main:Object
from (irb):1
irb(main):002:0> j = Nokogiri::HTML.parse('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">'); j.at('meta')
encoding error : output conversion failed due to conv error, bytes 0xCF 0x26 0x41 0xC0
I/O error : encoder error
=>
irb(main):003:0> j = Nokogiri::HTML.parse('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">'); j.at('meta')
encoding error : output conversion failed due to conv error, bytes 0xE3 0xF9 0x15 0xC0
I/O error : encoder error
=>
irb(main):004:0> j = Nokogiri::HTML.parse('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">'); j.at('meta')
=> < ="" core/transaction.rb=""></>
irb(main):005:0> j = Nokogiri::HTML.parse('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">'); j.at('meta')
=> < ="" content=""></>
irb(main):006:0> j = Nokogiri::HTML.parse('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">'); j.at('meta')
/opt/local/lib/ruby/gems/1.8/gems/nokogiri-1.2.3/lib/nokogiri/xml/node.rb:633: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment