Fixes the previous pull request #2

Merged
merged 1 commit into from Mar 9, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −5
Split
View
@@ -4,11 +4,7 @@ module Parser
def rexml_document(xml)
if xml.respond_to? :force_encoding
- if defined?(REXML::Encoding::UTF_8)
- xml.force_encoding(Encoding::UTF_8)
- else
- xml.force_encoding('utf-8')
- end
+ xml.force_encoding(::Encoding::UTF_8)
end
Document.new(xml)
end