Skip to content

Commit

Permalink
added unicode to url
Browse files Browse the repository at this point in the history
  • Loading branch information
john-devil committed Feb 12, 2012
1 parent 5c513e1 commit 5eb6910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/whereAmI.py
Expand Up @@ -24,7 +24,7 @@ def whereAmI(self, speech, language):
mapGetLocation = self.getCurrentLocation()
latitude = mapGetLocation.latitude
longitude = mapGetLocation.longitude
url = "http://maps.googleapis.com/maps/api/geocode/json?latlng={0},{1}&sensor=false&language={2}".format(str(latitude),str(longitude), language)
url = u"http://maps.googleapis.com/maps/api/geocode/json?latlng={0},{1}&sensor=false&language={2}".format(str(latitude),str(longitude), language)
try:
jsonString = urllib2.urlopen(url, timeout=3).read()
except:
Expand Down

0 comments on commit 5eb6910

Please sign in to comment.