Skip to content

Instantly share code, notes, and snippets.

@scotthansonde
Created March 30, 2018 21:53
Show Gist options
  • Select an option

  • Save scotthansonde/d81264223a5d492af040ea6f0277e041 to your computer and use it in GitHub Desktop.

Select an option

Save scotthansonde/d81264223a5d492af040ea6f0277e041 to your computer and use it in GitHub Desktop.
Setting encode to latin1 and skipping iconv
const request = require("request");
const urlTestFeed = "https://www.presseportal.de/rss/dienststelle_110972.rss2";
request({
uri: urlTestFeed, encoding: "latin1"
},
function (err, response, theString) {
// var iconv = new Iconv("ISO-8859-1", "UTF-8");
// theString = iconv.convert(theString.toString()).toString();
console.log(theString);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment