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

Form POST with unicode values is not encoded properly #150

Open
dobesv opened this issue Feb 4, 2016 · 0 comments
Open

Form POST with unicode values is not encoded properly #150

dobesv opened this issue Feb 4, 2016 · 0 comments

Comments

@dobesv
Copy link

dobesv commented Feb 4, 2016

When you do a post() with unicode data in it, it won't be encoded properly unless you specify a content_type with charset=utf8.

However, the mime type application/x-www-form-urlencoded doesn't officially support a charset property. If the server accepts multiple charsets it has to get that information elsewhere.

I think it might be reasonable to encode any unicode keys or values in a form to UTF-8 by default if there is no content_type or no charset on the content_type.

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

1 participant