Permalink
Browse files

Merge pull request #3 from dboczek/master

Fix for rearching with unicode characters like "Świętochłowice"
  • Loading branch information...
2 parents cb2436e + 461a4a9 commit 2e3cf30029242aad8735ba9e2d11b113d2937399 @ygneo ygneo committed Jun 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 store_locator/views.py
View
@@ -23,7 +23,7 @@ def show_locations(request):
def get_lat_long(request):
if not request.GET.get('q'):
return HttpResponse('')
- args = urllib.urlencode({'q': request.GET.get('q')})
+ args = urllib.urlencode({'q': request.GET.get('q').encode('utf8')})
r = urllib2.urlopen("http://maps.googleapis.com/maps/api/geocode/json?address=%s&sensor=false" % args)
return HttpResponse(r.read())

0 comments on commit 2e3cf30

Please sign in to comment.