* ext/json/lib/json/common.rb (JSON::MissingUnicodeSupport.iconv):

should not drop rest of the result.  use Iconv.conv instead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-06 04:48:49 +00:00
parent edaf78dfb6
commit b5f628a84a
2 changed files with 6 additions and 1 deletions

View file

@ -348,7 +348,7 @@ module JSON
else
require 'iconv'
def self.iconv(to, from, string)
Iconv.iconv(to, from, string).first
Iconv.conv(to, from, string)
end
end
end