let axios = require('axios') let httpurl = "https://www.dytt8.net/index.htm" axios.get(httpurl,{responseType:"gb2312"}).then(function(res){
console.log(res)
})
请问该如何设置才能让返回的中文不是乱码呢?
{responseType:"gb2312"}去掉。或者换成uft8
2.1m questions
2.1m answers
60 comments
57.0k users