Skip to content
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

Differences from HTTPie #322

Open
ducaale opened this issue Aug 16, 2023 · 1 comment
Open

Differences from HTTPie #322

ducaale opened this issue Aug 16, 2023 · 1 comment

Comments

@ducaale
Copy link
Owner

ducaale commented Aug 16, 2023

@ducaale ducaale changed the title Differences between xh and HTTPie Differences from HTTPie Aug 16, 2023
@blyxxyz
Copy link
Collaborator

blyxxyz commented Aug 16, 2023

Formatted output is always UTF-8.

What this means (IIRC) is that if:

  • The output is being redirected
  • The response is JSON
  • The response is latin1 (or some other non-UTF-8 encoding)
  • --pretty=format is passed

then HTTPie will turn the formatted JSON back into latin1, while we write it as UTF-8.

@blyxxyz blyxxyz mentioned this issue Aug 20, 2023
@ducaale ducaale pinned this issue Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants