httpx forces converting json content to ascii #3204
Unanswered
alleml
asked this question in
Potential Issue
Replies: 2 comments 3 replies
-
|
I guess a bug is here: https://github.com/encode/httpx/blob/master/httpx/_content.py#L177 doesn't make sense if you forced conversion to ascii first. or providing a way to make it configurable to keep backward compatibility. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
@alleml Seems that what you suggested got merged a few months ago #3363 #3367 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
httpx.Request blindly dumps provided json to ascii characters by invoking json.dumps without any parameters. Currently there is no way to provide
ensure_ascii=Falseargument to the Request instance (or even better to the client).It leads to the following scenario:
when I need properly encoded unicode bytes:
b"cze\xc5\x9b\xc4\x87"Beta Was this translation helpful? Give feedback.
All reactions