Skip to content

Instantly share code, notes, and snippets.

@scripting
Last active March 30, 2018 21:05
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 scripting/f68093b4da471028a821c3da467c62af to your computer and use it in GitHub Desktop.
Save scripting/f68093b4da471028a821c3da467c62af 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 (urlTestFeed, function (err, response, theString) {
var iconv = new Iconv ("ISO-8859-1", "UTF-8");
theString = iconv.convert (theString.toString ()).toString ();
console.log (theString);
});
{
"name": "test",
"description": "A test app to help get decoding working in feed reader.",
"author": "Dave Winer <dave@smallpicture.com>",
"version": "0.4.0",
"dependencies" : {
"request": "*",
"iconv": "*"
},
"license": "MIT",
"engines": {
"node": "*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment