why encoding is always a problem?
This commit is contained in:
parent
e550acf54c
commit
80a7797890
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class IpinfodbBackend(BaseBackend, ICapGeolocIp):
|
|||
elif "Hostname :" in line:
|
||||
tab['hostname'] = line.split('Hostname : ')[1].split('<')[0]
|
||||
iploc = IpLocation(ipaddr)
|
||||
iploc.city = tab['City']
|
||||
iploc.city = tab['City'].decode('utf-8')
|
||||
iploc.region = tab['Region']
|
||||
iploc.zipcode = 'NA'
|
||||
iploc.country = tab['Country name']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue