Created
March 30, 2018 22:32
-
-
Save ronw23/bb1fd559c1487196d3a4a9e36620c079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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