-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
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
new Buffer doesn't handle unicode well #2344
Comments
255 is never valid in a UTF-8 byte sequence. It probably worked by accident but invalid UTF-8 is replaced with U+FFFD (the replacement character) as of node.js v0.10.29. The V8 UTF-8 decoder became stricter in v3.x so that might be a factor as well. I don't think there is anything to do here except make a note of it somewhere in the documentation.. |
That's |
fixed on the browserify end |
results for hex2
the value of str in node is
����\u0000\u0010JFIF\u0000\u0001
which would suggest that the issue has to do with how new Buffer handles characters in text.cc feross/buffer#66
The text was updated successfully, but these errors were encountered: