summaryrefslogtreecommitdiff
path: root/lib/rexml/encodings/UNILE.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/encodings/UNILE.rb')
-rw-r--r--lib/rexml/encodings/UNILE.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/encodings/UNILE.rb b/lib/rexml/encodings/UNILE.rb
index 74bed14340..e57a784061 100644
--- a/lib/rexml/encodings/UNILE.rb
+++ b/lib/rexml/encodings/UNILE.rb
@@ -1,6 +1,6 @@
module REXML
module Encoding
- def to_unile content
+ def encode content
array_utf8 = content.unpack("U*")
array_enc = []
array_utf8.each do |num|
@@ -15,7 +15,7 @@ module REXML
array_enc.pack('C*')
end
- def from_unile(str)
+ def decode(str)
array_enc=str.unpack('C*')
array_utf8 = []
2.step(array_enc.size-1, 2){|i|