Skip to content

Instantly share code, notes, and snippets.

@ronw23
Created March 30, 2018 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronw23/bb1fd559c1487196d3a4a9e36620c079 to your computer and use it in GitHub Desktop.
Save ronw23/bb1fd559c1487196d3a4a9e36620c079 to your computer and use it in GitHub Desktop.
const Iconv = require ("iconv").Iconv;
const request = require ("request");
const urlTestFeed = "https://www.presseportal.de/rss/dienststelle_110972.rss2";
request ({url: urlTestFeed, encoding: null}, function (err, response, theString) {
var iconv = new Iconv ("ISO-8859-1", "UTF-8");
theString = iconv.convert (theString).toString ();
console.log (theString);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment