Ironholds / rgeolocate

Generalised IP geolocation through R
https://cran.r-project.org/web/packages/rgeolocate/index.html
Other
66 stars 22 forks source link

Possible character encoding bug with city names #54

Open veita opened 5 years ago

veita commented 5 years ago

Some city names show character encoding errors. E.g.

library(rgeolocate)

maxmind("94.79.163.0", "geoip/GeoLite2-City.mmdb", "city_name")

gives output Düsseldorf in RStudio's console as well as in displayed data frames.

As far as I undertand the MaxMind DB File Format Specification the encoding in the database itself should be UTF-8.

Operating system: Windows 7

GeoLite2-City download from https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz, 2019-06-06.