lundi 2 février 2015

Meteor http call and character encoding


The following code returns some weird characters like � instead of é:



var html = HTTP.get(url);
console.log(html);


The encoding of the url page is ISO-8859-1 and I guess HTTP.get() expect UTF-8. How do I tell HTTP.get to except ISO-8859-1 for this specific url?





Aucun commentaire:

Enregistrer un commentaire