This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Missing encoding parameter in urllib/
Type: crash Stage: resolved
Components: Versions: Python 3.6
Status: closed Resolution: duplicate
Dependencies: Superseder: urllib.parse.parse_qsl does not handle unicode data properly
View: 30483
Assigned To: Nosy List: jmbc
Priority: normal Keywords:

Created on 2017-11-25 11:48 by jmbc, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg306953 - (view) Author: Jean-Michel (jmbc) Date: 2017-11-25 11:48
Here is the patch, working for me in Python 3.4.2
<             #~ value = _coerce_result(value)
<             value = _coerce_result(value,encoding=encoding)
>             value = _coerce_result(value)
msg306954 - (view) Author: Jean-Michel (jmbc) Date: 2017-11-25 11:52
Sorry, the description was missing. crashes if provided with unicode data like "voilà" :

[wsgi:error] [pid 20335] [client] UnicodeEncodeError: 'ascii' codec can't encode character '\\xe0' in position 314: ordinal not in range(128)

The "encoding" parameters looks missing in, so I included it.
Date User Action Args
2022-04-11 14:58:54adminsetgithub: 76312
2018-05-29 12:32:20cheryl.sabellasetstatus: open -> closed
superseder: urllib.parse.parse_qsl does not handle unicode data properly
resolution: duplicate
stage: resolved
2017-11-25 11:52:49jmbcsetmessages: + msg306954
2017-11-25 11:48:22jmbccreate