I'm using freegeoip to know my location and use it in my program, but when I make a call using:
r = requests.get(location_url, headers={"content-type":"application/json;charset=UTF-8"})
The return looks like this:
{
ip: "0.0.0.0",
country_code: "BR",
country_name: "Brazil",
region_code: "SP",
region_name: "Sao Paulo",
city: "São Paulo",
zip_code: "",
time_zone: "America/Sao_Paulo",
latitude: -20.1323,
longitude: -50.6417,
metro_code: 0
}
When I read using r.text
, I need accents in words. How can I do this?