You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
This is working as intended in v0.11. It's actually a Buffer object in both cases. The bug is that v0.10 is passing the encoding along even though it's been buffer-ified.
The intent of this API is so that users don't have to worry about the encoding most of the time. If you want to preserve the strings instead of decoding them into the raw bytes in a buffer, you can do it this way:
Since the encoding is no longer relevant once it is decoded to a Buffer,
it is confusing and incorrect to pass the encoding as 'utf8' or whatever
in those cases.
Closesnodejs#6119
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In node 0.10.17:
in node 0.11.6:
The text was updated successfully, but these errors were encountered: