我有一些这样的代码:-
const request=require('request');
const url=require('url');
const cheerio=require('cheerio');
request({uri: 'https://www.facebook.com/'}, (err, resp, body)=>{
var $=cheerio.load(body);
console.log($('title').text());
console.log($('body').text())
});
当我尝试向Facebook或google请求时,返回的响应类似于:-
Facebook - ??? ??? ?????? | Facebook
??????? login or signup ??????? ??
或
Google
Signin??? ???....
如何解决这些问号?