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

Location Search does not work with umlauts #32

Open
ikzte opened this issue Nov 8, 2019 · 1 comment
Open

Location Search does not work with umlauts #32

ikzte opened this issue Nov 8, 2019 · 1 comment

Comments

@ikzte
Copy link

ikzte commented Nov 8, 2019

Expected Behavior

Search and find addresses with umlauts like "Saarbrücken"

Actual Behavior

While Searchrequests without Umlauts are working, for Saarbrücken an error is shown:

grafik

Internal Server Error: /proxy/

UnicodeEncodeError at /proxy/
'ascii' codec can't encode characters in position 45-46: ordinal not in range(128)

Specifications

GeoNode version: 2.10.1 (at master.demo)

@ghost
Copy link

ghost commented Feb 21, 2020

it seems the source of issue is within geonode. At least I was able to fix it in geonode.utils.HttpClient.request with the change from

url=urllib.unquote(url).decode('utf8'),

to

url=urllib.unquote(url.encode('utf-8')).decode('utf8'),

I will open an issue on geonode repo for that.

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