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

response gbk转utf-8 去除乱码 #5

Open
soneSky opened this issue Dec 14, 2023 · 0 comments
Open

response gbk转utf-8 去除乱码 #5

soneSky opened this issue Dec 14, 2023 · 0 comments

Comments

@soneSky
Copy link

soneSky commented Dec 14, 2023

/**
* newResponse.body 是二进制数据流buffer
* const iconv = require("iconv-lite")
* body=iconv.decode(newResponse.body,'gbk') 把gbk数据流转为utf-8
*/

html与js同样修改

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