diff options
Diffstat (limited to 'lib/rexml/document.rb')
-rw-r--r-- | lib/rexml/document.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb index 68a744d9e5..790a1c78db 100644 --- a/lib/rexml/document.rb +++ b/lib/rexml/document.rb @@ -184,7 +184,7 @@ module REXML # that IE's limited abilities can handle. This hack inserts a space # before the /> on empty tags. Defaults to false def write( output=$stdout, indent=-1, transitive=false, ie_hack=false ) - if xml_decl.encoding != ::Encoding::UTF_8 && !output.kind_of?(Output) + if xml_decl.encoding != 'UTF-8' && !output.kind_of?(Output) output = Output.new( output, xml_decl.encoding ) end formatter = if indent > -1 |