You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing encoding parameter in urllib/parse.py #76312
parse.py crashes if provided with unicode data like "voilà" :
[wsgi:error] [pid 20335] [client 127.0.0.1:44658] UnicodeEncodeError: 'ascii' codec can't encode character '\\xe0' in position 314: ordinal not in range(128)
The "encoding" parameters looks missing in parse.py, so I included it.
Activity
jmbc commentedon Nov 25, 2017
Here is the patch, working for me in Python 3.4.2
610,611c703
< #~ value = _coerce_result(value)
< value = _coerce_result(value,encoding=encoding)
---
jmbc commentedon Nov 25, 2017
Sorry, the description was missing.
parse.py crashes if provided with unicode data like "voilà" :
[wsgi:error] [pid 20335] [client 127.0.0.1:44658] UnicodeEncodeError: 'ascii' codec can't encode character '\\xe0' in position 314: ordinal not in range(128)
The "encoding" parameters looks missing in parse.py, so I included it.