const request = require('request');
let options = {
url:'http://comment.bilibili.com/299601.xml',
headers: {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36 QQBrowser/4.2.4763.400',
"contentType": 'text/xml;charset=UTF-8'
}
};
request(options, function(er, response,body) {
if (er){
throw er;
}
console.log(body)
})
输出结果
慕的地6264312
用RandomAcessFile无论自己写的还是读取的中文文件都无乱码
IndexController.class.php无法读取
python读取文件时第一行没读取出来
我用python读取pdf文件,读取出来的汉字很多重复是怎么回事?
相关分类