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
It occurs only when content-type is "application/x-www-form-urlencoded". urllib.parse.parse_qsl requires str data instead of bytes when data contains non-ascii character.
Traceback (most recent call last):
File "request_handler.pyx", line 150, in cefpython_py37.RequestHandler_GetResourceHandler
File "/Volumes/SSD-PLU3/Users/*****/Library/Preferences/PyCharm2018.3/scratches/getpost.py", line 28, in GetResourceHandler
print(request.GetPostData())
File "request.pyx", line 83, in cefpython_py37.PyRequest.GetPostData
File "request.pyx", line 122, in cefpython_py37.PyRequest.GetPostData
File "/Users/******/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/urllib/parse.py", line 720, in parse_qsl
value = _coerce_result(value)
File "/Users/******/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/urllib/parse.py", line 103, in _encode_result
return obj.encode(encoding, errors)
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001f363' in position 0: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
Here is the faulty code:
cefpython/src/request.pyx
Line 122 in 4c5cf09
It occurs only when content-type is "application/x-www-form-urlencoded".
urllib.parse.parse_qsl
requires str data instead of bytes when data contains non-ascii character.Reported on the Forum:
https://groups.google.com/d/topic/cefpython/A7gDz3XmK1I/discussion
Code to reproduce the problem:
Error and traceback:
The text was updated successfully, but these errors were encountered: