We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is where bad things happens - if chunk contains only part of unicode character then implicit Buffer.toString() produces corrupted string.
Buffer.toString()
The fix will be to keep an array of chunks and then invoking Buffer.concat(chunks).toString() at the end.
Buffer.concat(chunks).toString()
Simple repro with hotfix
The text was updated successfully, but these errors were encountered:
Just noticed that prerender.plainResponse can also have this bug. Not sure if chunk is Buffer or String in this case.
Sorry, something went wrong.
fix unicode strings corruption (prerender#192)
ce28139
prerender#192
fix unicode strings corruption
b34325d
closes prerender#192
Successfully merging a pull request may close this issue.
This is where bad things happens - if chunk contains only part of unicode character then implicit
Buffer.toString()
produces corrupted string.The fix will be to keep an array of chunks and then invoking
Buffer.concat(chunks).toString()
at the end.Simple repro with hotfix
The text was updated successfully, but these errors were encountered: