Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python street2coordinates UnicodeDecodeError #49

Open
webfanatic opened this issue Sep 20, 2014 · 0 comments
Open

Python street2coordinates UnicodeDecodeError #49

webfanatic opened this issue Sep 20, 2014 · 0 comments

Comments

@webfanatic
Copy link
Contributor

For the address "7332 CIRCULO PAPAYO, CARLSBAD,CA 92009" I get an exception "UnicodeDecodeError: 'utf8' codec can't decode byte 0xed ...".

The stack trace points to dstk.py, line 106, in street2coordinates
response = json.loads(response_string)

Adding
response_string = unicode(response_string, 'latin-1')
response = json.loads(response_string)

Does the trick.

I'll make a pull request.

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

No branches or pull requests

1 participant