cli
cli copied to clipboard
`http -v` should show escaped Unicode as-is
In the two commands below, both shows the same JSON.
$ http -v httpbin.org/post a:='"あ"'
...
{
"a": "あ"
}
...
$ echo '{"a": "あ"}' | http -v httpbin.org/post
...
{
"a": "あ"
}
...
But actually they send different data:

In the first command, I expect it to show \u3042, but it seems parse the escaped Unicode and show the parsed letter あ.
i.e. it should output:
$ http -v httpbin.org/post a:='"あ"'
...
{
"a": "\u3042"
}
...
$ echo '{"a": "あ"}' | http -v httpbin.org/post
...
{
"a": "あ"
}
...
See also https://github.com/httpie/httpie/issues/814.