The quick brown fox jumps over the lazy dog.
日本語が上手です
eoxml
reader = Nokogiri::XML::Reader(xml, nil, 'UTF-8')
reader.each do |node|
next unless lang = node.lang
assert_equal reader.encoding, lang.encoding.name
end
end
def test_value
called = false
@reader.each do |node|
next unless value = node.value
assert_equal @reader.encoding, value.encoding.name
called = true
end
assert called
end
def test_prefix
xml = <<-eoxml