-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Request not utf-8 encoded #1818
Comments
Uppy's |
@wirob where are you inspecting the multipart-form? Is in the network tab from dev tools or are you getting this behaviour from the server too? From what I see here, so long as your server handles the data appropriately, all should be fine |
Closing per above: most likely this is just a devtools display issue and doesn't affect the data being sent. please let us know if that's wrong and we'll reopen! |
Sorry for the late reply. You were correct, since my dev-tools didn't know which charset to use when displaying the multipart-form all special characters got scrambled. Is there a reason UTF-8 isn't the default charset? |
I don't know for sure how the devtools choose the charset. For response data, it's usually like this: by HTTP spec, the default charset is ISO-8559-1 or something, if no other charset is given. But many many websites do not specify a specific charset and use a different one, so if browsers followed the spec to the letter, most websites would render incorrectly. So, browsers look at the bytes and try to guess which charset is used. The |
When uploading a file with special characters like
å ä ö ø æ
they turn up likeåäö ø æ
in the multipart-form.The only time this doesn't happen, is when uploading a .svg.
I have read that one needs to set
<meta charset="utf-8" />
inindex.html
, but it is set to utf-8 when usingcreate-react-app
by default.The problem, as I see it, it that the individual "metaFields" doesn't set UTF-8 as encoding.
The text was updated successfully, but these errors were encountered: