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] Encoding Problem: \xA0 will be encoded into \xc2\xa0 #12

Open
domitoris opened this issue Jul 9, 2020 · 1 comment
Open

[Bug] Encoding Problem: \xA0 will be encoded into \xc2\xa0 #12

domitoris opened this issue Jul 9, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@domitoris
Copy link

Your code encode string into utf-8 bytes.
But when "endspace-a0" is sent, utf-8 encoding encode \xA0 into \xc2\xa0.
So, it will probably result in incorrect diagnosis

therefore, I suggest you that fix the below code into plain text because HTTP protocol sends a plain text.

web.send(str(payload_obj).encode())

Suggestion:

web.send(str(payload_obj))

image

@defparam defparam added the bug Something isn't working label Jul 10, 2020
@defparam
Copy link
Owner

Thank you, yes the encodings in this tool need to be fixed so they aren't converting raw payload to UTF-8-style characters

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

2 participants