summaryrefslogtreecommitdiff
path: root/ext/json/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/lib')
-rw-r--r--ext/json/lib/json/common.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb
index 13debd1366c..91cb3c21902 100644
--- a/ext/json/lib/json/common.rb
+++ b/ext/json/lib/json/common.rb
@@ -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