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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to use emoji in Python code generation #155

Open
1 task done
kkoang opened this issue Feb 28, 2024 · 0 comments
Open
1 task done

[Bug]: Unable to use emoji in Python code generation #155

kkoang opened this issue Feb 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kkoang
Copy link

kkoang commented Feb 28, 2024

What happened?

Unable to use emoji in Python code generation

Steps to reproduce?

1. Launch the app
2. Switch to POST and add content emoji(馃構) to the Body input box
3. Click button "Show preview & export
4. Switch "Python/http.client"

What did you expect to happen?

Unable to use emoji in Python code generation.
Bug code:

payload = "馃構"

Fixed code:

payload = "馃構".encode("utf-8")

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
@kkoang kkoang added the bug Something isn't working label Feb 28, 2024
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