我试图通过请求获得正确的编码.
request.get({
"uri":'http://www.bold.dk/tv/',
"encoding": "text/html;charset='charset=utf-8'"
},
function(err, resp, body){
console.log(body);
}
);
Run Code Online (Sandbox Code Playgroud)
无论我做什么,丹麦字符的编码都是不对的.
有什么想法吗?