Skip to content
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

UTF-8 charset #7

Open
cadrogui opened this issue Jan 29, 2017 · 0 comments
Open

UTF-8 charset #7

cadrogui opened this issue Jan 29, 2017 · 0 comments

Comments

@cadrogui
Copy link

Hi, Ive noticed that in the line 62

fetched = (result && typeof result !== "string" ? result.buffer.toString("utf8") : result || "");

the response has try to encode by utf8 but the result in Spanish is the � character, can be optional this "encode", an solution for this is using the iconv library

like this:

iconv.decode(new Buffer(response), "ISO-8859-1");

regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant