Serhiy Storchaka added the comment:
Could you please show us the value of env?
Perhaps it is werkzeug creates wrongly quoted URL. request_uri() just calls
urllib.parse.quote() which works good.
>>> from urllib.parse import quote, unquote
>>> quote('/\N{SNOWMAN}')
'/%E2%98%83'
>>> unquote('/%E2%98%83') == '/\N{SNOWMAN}'
True
Your result looks as
>>> quote('/\N{SNOWMAN}'.encode().decode('latin1'))
'/%C3%A2%C2%98%C2%83'
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue20138>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com