The issue involves adding charset=utf-8 encoding to the Content-Type header for server actions.
The issue reports that the Content-Type header for server actions lacks charset=utf-8 encoding, which is expected for text-based responses. The fix likely involves modifying the header setting logic in the server actions implementation. The scope is somewhat clear, but understanding the server actions codebase is necessary.
https://codesandbox.io/p/sandbox/github/vercel/next.js/tree/canary/examples/reproduction-template
I would expect that the server actions will return a correct encoding as other text based responses. This cannot be patched in proxy because the content type header is set after the proxy.
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Enterprise
Available memory (MB): 65202
Available CPU cores: 20
Binaries:
Node: 24.4.0
npm: 11.4.2
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 16.1.5 // No Next.js version data was found.
eslint-config-next: N/A
react: 19.2.4
react-dom: 19.2.4
typescript: 5.9.3
Next.js Config:
output: standalone
Server Actions
Other (Deployed)
I'm willing to send a PR if you confirm that this should be fixed.
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!