I am trying to get the correct encoding with request.
request.get({
"uri":'http://www.bold.dk/tv/',
"encoding": "text/html;charset='charset=utf-8'"
},
function(err, resp, body){
console.log(body);
}
);
No matter what I do the encoding of the danish chars are not right.
Any thoughts?
encoding
with thecontent-type
header -- e.g.:"encoding": "utf-8"
. But, the page is encoded inISO-8859-1
rather thanUTF-8
. For that, see stackoverflow.com/questions/8915404/….