aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/output.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/output.rb')
-rw-r--r--lib/rexml/output.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/output.rb b/lib/rexml/output.rb
index 208bb0ade1..0c6cc7a7f8 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'
+ @to_utf = encoding != 'UTF-8'
if encoding == "UTF-16"
@output << "\ufeff".encode("UTF-16BE")