Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Encoding error in settings #5

Open
sofakissen opened this issue Oct 15, 2012 · 1 comment
Open

Encoding error in settings #5

sofakissen opened this issue Oct 15, 2012 · 1 comment

Comments

@sofakissen
Copy link
Collaborator

Entering special characters in the settings page leads to an error: ascii' codec can't encode character u'\xfc' in position 9: ordinal not in range(128)

Edit: error also occures when entering special character as location when adding new hardware (i.e. "Köln")

Edit 2: actualy, this error occurs everythere ;)

@phillipthelen
Copy link
Owner

You currently have to patch geopy.
replace the line 81 in the geocoders/google.py file with the following:
url = self.url % urlencode(dict([k, v.encode('utf-8')] for k, v in params.items()))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants