-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding is always UTF-8 in POST data #1750
Labels
Comments
fafhrd91
added a commit
that referenced
this issue
Mar 26, 2017
Encoding is always UTF-8 in POST data #1750
fixed in master |
fafhrd91
added a commit
that referenced
this issue
Mar 27, 2017
fafhrd91
added a commit
that referenced
this issue
Mar 27, 2017
This was referenced Sep 16, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
I'm doing a
POST
request viaclient.post
:where
name
contains some none-latin text ('хан'
)Expected behaviour
POST data should contain:
FindText=%D5%E0%ED
Actual behaviour
FindText=%D1%85%D0%B0%D0%BD'
Steps to reproduce
Looking through the code of
formdata.py:99
I noticed, that
data
is urlencoded in UTF-8 first and then encoded towindows-1251
(and that has no effect on%D1...
).For now, I just manually do in my code:
And I get the string that I need.
Is it a bug? Or am I doing it wrong?
Your environment
The text was updated successfully, but these errors were encountered: