diff --git a/lib/gmo.rb b/lib/gmo.rb index a41dd3d..ac02ada 100644 --- a/lib/gmo.rb +++ b/lib/gmo.rb @@ -42,7 +42,7 @@ def api(path, args = {}, verb = "post", options = {}, &error_checking_block) key_values = result.body.to_s.split('&').map { |str| str.split('=', 2) }.flatten response = Hash[*key_values] # converting to UTF-8 - body = response = Hash[response.map { |k,v| [k, NKF.nkf('-w',v)] }] + body = response = Hash[response.map { |k,v| [k, NKF.nkf('-S -w',v)] }] # Check for errors if provided a error_checking_block yield(body) if error_checking_block # Return result