# File lib/nokogiri/html/document.rb, line 7 def meta_encoding meta = meta_content_type and /charset\s*=\s*([\w-]+)/i.match(meta['content'])[1] end