-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using streaming SSR decodeText is called repeatedly with incoming chunks of data. In that case a multi-byte character may occasionally split between chunks, causing corruption. By setting the TextDecoder option 'stream' to true, and reusing the same TextDecoder instance, TextDecoder will memorise “unfinished” characters and decode them when the next chunk comes.
- Loading branch information
1 parent
050936c
commit 04cf4c9
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters