Open laurentpayot opened 11 years ago
I think it's more a problem in WebOb / WSGI PEP. Every url should be latin1 encoded and the real url encoding is lost during the process (see hard coded latin-1 encoding in the traceback...).
Not sure that we'll be able to fix that one day...
Also, looks like it's related to https://github.com/Pylons/webtest/issues/1
i had this problem today
i had to "hack" webob to use UTF, to allow send
url = reverse('someurl', kwargs={'name': 'żółć'})
how about some hack/parameter for this? to allow UTF in urls?
@gawel - bump?
We are going to pull WebTest out of one of our projects over this for now, which makes me sad.
This URL really should be useable through this test framework:
/community/personal/%C3%89ric%20Vyncke/manage/
But by the time it gets to
return bytes_(val, 'latin-1').decode(encoding)
in webop.request.encget, the %C3%89
has been unescaped and val has an É
in it.
@rjsparks as you noticed the "problem" is in webob, not webtest.
Why the quotes around "
problem"
?
@bertjwregeer - I don't see a relevant issue at webob on a quick read. Are you already aware of this behavior?
I’m unsubscribing from this 10 years old thread because I moved from Python to JS/TS and Elm a loooong time ago. :sauropod: I will let the repo owner close this issue when fixed… or not :wink:
I use quoted URLs such as /fr/livres/cr%C3%A9ation/ (for /fr/livres/création/).
get()
is working fine with these urls but once I have the response if I try to useclick()
orsubmit()
on it I get the following error:I'm using Ubuntu 13.04 64 bit and Python 3.3.1 with the last commit of Webtest.