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

[Bug]: URL encoded using ISO/IEC 8859-1 charset on Mac #208

Open
1 task done
ccmaymay opened this issue Jan 14, 2025 · 0 comments
Open
1 task done

[Bug]: URL encoded using ISO/IEC 8859-1 charset on Mac #208

ccmaymay opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ccmaymay
Copy link

ccmaymay commented Jan 14, 2025

What happened?

On Mac OS X (15.2; M1): I tried to run a basic GET request, no parameters, custom headings, etc., but with é in the URL. In the CLI (3.2.4; installed via homebrew), and in the browser (Safari), é gets UTF-8-encoded to %C3%A9 as expected. However, in the desktop app, it gets encoded to %E9, which is the encoding under ISO/IEC 8859-1.

I have confirmed that this is not an issue on the server side; that was my original assumption. If I run curl on the same URL but with the é replaced with %C3%A9 (and the space in the URL replaced with %20), the server decodes the URL successfully and I see a é in the server log instead of %E9.

Steps to reproduce?

1. Execute request in the desktop app with `é` in URL
2. On the web server logs, see that the `é` has been replaced with `%E9`

What did you expect to happen?

I expected the encodings to match, at least between the desktop app and Safari if not between the desktop app and the CLI, and I also expected the (default) encoding to be UTF-8. If nothing else, I would expect there to be a way to change the encoding in the desktop app.

Platform

macOS

HTTPie Desktop version

2022.5.1

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ccmaymay ccmaymay added the bug Something isn't working label Jan 14, 2025
@ccmaymay ccmaymay changed the title [Bug]: URL encoded using Windows-1252 charset on Mac [Bug]: URL encoded using ISO/IEC 8859-1 charset on Mac Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant