Formdata Spanish accents or other special characters don't show up as one would expect
See original GitHub issueDescribe 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
System:
OS: macOS 13.0.1
CPU: (8) arm64 Apple M1 Pro
Memory: 98.81 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.4.0 - ~/.nvm/versions/node/v18.4.0/bin/node
npm: 8.13.2 - ~/.nvm/versions/node/v18.4.0/bin/npm
Browsers:
Brave Browser: 98.1.35.101
Chrome: 107.0.5304.110
Firefox: 107.0
Safari: 16.1
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.89
@sveltejs/kit: next => 1.0.0-next.563
svelte: ^3.44.0 => 3.53.1
vite: ^3.1.0 => 3.2.4
Severity
annoyance
Additional Information
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Encoding problems when using multipart/form-data - Forums
I have a form that allows file uploads, but the form also contains some plain text input fields. The problem is, when the...
Read more >Spanish Characters not Displaying Correctly - Stack Overflow
PHP ini has default_charset setting it should be utf-8 if you do not have access to it use ini_set('default_charset', 'utf-8');.
Read more >Spanish accent letters not showing properly when form is ...
I've been working on a form all morning. It's in Spanish and it seems that when I save it, certain characters such as...
Read more >DT doesn't allow accents and spanish character
We have a big problem with spanish accent and special characters using Data Transformation (HL7 Messages). We have some DT to transform HL7 ......
Read more >Character Conversions from Browser to Database - Oracle
The following image shows a possible display when you do not provide any character encoding information to the browser. In this case, characters...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://github.com/nodejs/undici/pull/1786
@sveltejs/kit@1.0.0-next.575include the update toundici@5.14.0, so this should be fixed now.