SSR sometimes breaks utf8 characters in component props into individual bytes #46561
Closed
1 task done
Labels
bug
Issue was opened via the bug report template.
Verify canary release
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP PREEMPT_DYNAMIC Mon Feb 6 11:26:13 UTC 2023
Binaries:
Node: 19.6.0
npm: 8.19.2
Yarn: 1.22.19
pnpm: N/A
Relevant packages:
next: 13.2.2-canary.3
eslint-config-next: 13.2.1
react: 18.2.0
react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
it reproduces randomly
To Reproduce
Render a "use client" components with props containing utf8 characters.
Sometimes utf8 characters are broken like that:
Actually the broken string should be
Запомніць мяне
Describe the Bug
The bug is in the use of the function
decodeText
inapp-render.ts
file.The function
decodeText
has the second argument which should fix utf8 characters support, but it's not used inapp-render.ts
.To not break utf8 characters the second argument to
decodeText
should be always provided.Expected Behavior
Utf8 characters are not broken
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: