httpx forces converting json content to ascii #3204
Unanswered
alleml
asked this question in
Potential Issue
Replies: 1 comment 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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=False
argument 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