lib/geonames_api/country.rb in geonames_api-0.0.4 vs lib/geonames_api/country.rb in geonames_api-0.0.5
- old
+ new
@@ -18,10 +18,10 @@
end
csv
end
def postal_code_csv
- CSV.parse(postal_code_export, headers: true, col_sep: "\t", header_converters: :symbol)
+ CSV.parse(postal_code_export, headers: true, col_sep: "\t", header_converters: :symbol, encoding: "ISO8859-1")
end
def postal_code_export_url
EXPORT_BASE_URL + country_code + ".zip"
end
\ No newline at end of file