diff options
Diffstat (limited to 'lib/rexml/output.rb')
-rw-r--r-- | lib/rexml/output.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/output.rb b/lib/rexml/output.rb index b7f17b9dff..752f6e1d40 100644 --- a/lib/rexml/output.rb +++ b/lib/rexml/output.rb @@ -10,7 +10,7 @@ module REXML @output = real_IO self.encoding = encd - @to_utf = encd == UTF_8 ? false : true + @to_utf = (@encoding != ::Encoding::UTF_8) end def <<( content ) |