summaryrefslogtreecommitdiff
path: root/lib/rexml/encodings/ISO-8859-1.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/encodings/ISO-8859-1.rb')
-rw-r--r--lib/rexml/encodings/ISO-8859-1.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/encodings/ISO-8859-1.rb b/lib/rexml/encodings/ISO-8859-1.rb
index 98c5aff3b2..0cb9afd147 100644
--- a/lib/rexml/encodings/ISO-8859-1.rb
+++ b/lib/rexml/encodings/ISO-8859-1.rb
@@ -1,7 +1,7 @@
module REXML
module Encoding
# Convert from UTF-8
- def to_iso_8859_1 content
+ def encode content
array_utf8 = content.unpack('U*')
array_enc = []
array_utf8.each do |num|
@@ -16,7 +16,7 @@ module REXML
end
# Convert to UTF-8
- def from_iso_8859_1(str)
+ def decode(str)
str.unpack('C*').pack('U*')
end
end