summaryrefslogtreecommitdiff
path: root/lib/rexml/formatters/default.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/formatters/default.rb')
-rw-r--r--lib/rexml/formatters/default.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/formatters/default.rb b/lib/rexml/formatters/default.rb
index ec4149047d..574c821f96 100644
--- a/lib/rexml/formatters/default.rb
+++ b/lib/rexml/formatters/default.rb
@@ -22,7 +22,7 @@ module REXML
case node
when Document
- if node.xml_decl.encoding != ::Encoding::UTF_8 && !output.kind_of?(Output)
+ if node.xml_decl.encoding != 'UTF-8' && !output.kind_of?(Output)
output = Output.new( output, node.xml_decl.encoding )
end
write_document( node, output )