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

[FeatureRequest] Option to return ArrayBuffer #2

Open
MPThLee opened this issue Dec 7, 2023 · 1 comment
Open

[FeatureRequest] Option to return ArrayBuffer #2

MPThLee opened this issue Dec 7, 2023 · 1 comment

Comments

@MPThLee
Copy link

MPThLee commented Dec 7, 2023

Since Response.text of fetch is always decoded using UTF-8, I need to change some code for scraping non-unicode site. (Yeah, it still existing...)
I think providing option for it will be nice feature for this library. returning arraybuffer if option is provided. so I can use decode(py) or TextEncoder(js) for decoding characters properly.

CC: https://stackoverflow.com/questions/55282444/javascript-fetch-characters-with-encoding-issues

@aprilahijriyan
Copy link
Owner

Interesting, to be honest I don't really know much about JS. Maybe you could submit a PR for this?

Thank you.

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

2 participants