-
-
Notifications
You must be signed in to change notification settings - Fork 917
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
'encoding' option doesn't change output #268
Comments
@rightaway can you post code snippet, that reproduces error? |
From the Node.js docs:
|
Does it mean I need to change |
I don't know. The Node.js docs are unclear about what you should do. I guess the safest thing to do would be to manually convert using something like https://github.com/ashtuchkin/iconv-lite |
If I set the like this
got.stream(url, { encoding: 'latin1' })
, it doesn't seem to change the output as I would have expected for the file contents. I then tried changing the encoding string to a random string, andgot
didn't report any error. Is the encoding option being used? I'm using version 6.6.3.Same with setting the option to
null
, it should return a Buffer but doesn't seem to change anything.The text was updated successfully, but these errors were encountered: