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
Formdata Spanish accents or other special characters don't show up as one would expect #7837
Comments
This seems to be specific to progressively enhanced forms. Presumably the response to the request to the underlying action should have a |
More generally, it seems to be stemming from how
It also adds a "boundary" to the header: By default (w/o progressive enhancement) form submissions are |
It seems to be a const formData = new FormData();
formData.append('Género', '1');
const request = new Request('http://localhost', {
method: 'POST',
body: formData
});
console.log(...await request.formData());
// [ 'Género', '1' ]
// ['Género', '1'] |
https://github.com/mscdex/busboy#exports
If i specify |
It seems they released the fix under version |
This has been updated in #7995, although not yet released I don't think. @Rich-Harris That probably should have had a changeset added, because that upgrade is a user-visible change. I'm not sure how we want to handle this now. |
|
Describe the bug
When creating fomData with name fields with accents such as the word "Género", when parsing in the server it shows up as garbled text such as "Género". I believe the the behavior would be that it would show up as "Género", but please correct me if I am wrong.
Reproduction
Link to the reproduction below in the following repo: https://github.com/luthfib/sveltekit-bug-repro. I created a minimal sveltekit repo that has two input fields and a submit button using use:enhance. Once the data is submitted I have. validate action that receives it and upon inspecting the data in the server it can be seen that the characters are not encoded as one would expect.
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: