Filtering from charts can fail in IE
Issue #441
resolved
Filtering from charts with non-ASCII characters are passed without modification to the IE URL, which then fails. In Chrome the non-ASCII characters are converted with %.
Filtering the same names in the side table filter works fine, django sorts out the %.
It's likely we need to use django.utils.http.urlquote
or something. https://docs.djangoproject.com/en/1.8/ref/utils/#module-django.utils.http
from django.utils import http
http.urlquote("Ländryggen DX")
u'L%C3%A4ndryggen%20DX'
Is this something you might look at @dplatten?
Initial bug report was from Love Kull
Comments (3)
-
-
reporter -
assigned issue to
Thanks David.
-
assigned issue to
-
- changed status to resolved
Fixed issue where links from pie chart, histogram and over-time plot points failed when the links contained non-ASCII characters. Used JavaScript
encodeURI
function to solve the problem. Fixes issue#441→ <<cset 3cca23da1114>>
- Log in to comment
Hi @edmcdonagh. I'll take a look. It might be https://docs.djangoproject.com/en/1.8/ref/utils/#django.utils.encoding.iri_to_uri that is needed, according to http://twigstechtips.blogspot.co.uk/2013/06/pythondjango-dealing-with-utf8-in.html.