http://www.cnblogs.com/linka/p/6658055.html
https://cnodejs.org/topic/53142ef833dbcb076d007230
// npm i request cheerio iconv-lite const request = require('request'); const cheerio = require('cheerio'); const iconv = require('iconv-lite'); request({ url: 'http://roll.mil.news.sina.com.cn/col/zgjq/index.shtml', encoding : null }, function (err, response, body) { if (err) throw new Error(err.message); var str = iconv.decode(response.body, 'GBK').toString(); console.log(20180829214413, str) });