Skip to content
Snippets Groups Projects
Commit 55b90f70 authored by Alex Reisner's avatar Alex Reisner
Browse files

Remove MaxMind character encoding conversion.

Either do it consistently across Ruby versions, or don't do it at all.
Plus, it didn't seem to work.
parent 3aad8b7c
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,6 @@ module Geocoder::Lookup
end
def parse_raw_data(raw_data)
# Maxmind just returns text/plain as csv format but according to documentation,
# we get ISO-8859-1 encoded string. We need to convert it.
if raw_data.respond_to?(:force_encoding)
raw_data = raw_data.force_encoding("ISO-8859-1").encode("UTF-8")
end
CSV.parse_line raw_data
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment