diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-10 02:30:08 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-10 02:30:08 +0000 |
commit | 570befe608c7e8b0fde9374bffdafcf7a7e088c8 (patch) | |
tree | 7449f76f6a4c32942ed4d1c4804057f57ecdb43b /lib/rexml/encodings/EUC-JP.rb | |
parent | 95b7ffce0fd924277a344613943778663c1ced22 (diff) |
* lib/rexml/encodings/EUC-JP.rb (Encoding): use join.
* lib/rexml/encodings/Shift-JIS.rb (Encoding): use join, and
typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/encodings/EUC-JP.rb')
-rw-r--r-- | lib/rexml/encodings/EUC-JP.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/encodings/EUC-JP.rb b/lib/rexml/encodings/EUC-JP.rb index 23a1c3c657..1be5663be8 100644 --- a/lib/rexml/encodings/EUC-JP.rb +++ b/lib/rexml/encodings/EUC-JP.rb @@ -18,11 +18,11 @@ rescue LoadError module REXML module Encoding def from_euc_jp(str) - return Iconv::iconv("utf-8", "euc-jp", str)[0] + return Iconv::iconv("utf-8", "euc-jp", str).join end def to_euc_jp content - return Iconv::iconv("euc-jp", "utf-8", content)[0] + return Iconv::iconv("euc-jp", "utf-8", content).join end end end |