lib/ipgeobase/ip_meta_data.rb in ipgeobase-0.1.0 vs lib/ipgeobase/ip_meta_data.rb in ipgeobase-0.1.1
- old
+ new
@@ -28,12 +28,12 @@
private
def encode(api_string)
if api_string.respond_to?(:encode)
- api_string.encode
+ api_string.encode("UTF-8")
else
- Iconv.iconv('windows-1251', 'utf-8', api_string).first
+ Iconv.iconv('utf-8', 'windows-1251', api_string).first
end
end
end
end