Last active
March 30, 2018 21:05
-
-
Save scripting/f68093b4da471028a821c3da467c62af to your computer and use it in GitHub Desktop.
This file contains hidden or 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 (urlTestFeed, function (err, response, theString) { | |
var iconv = new Iconv ("ISO-8859-1", "UTF-8"); | |
theString = iconv.convert (theString.toString ()).toString (); | |
console.log (theString); | |
}); |
This file contains hidden or 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
{ | |
"name": "test", | |
"description": "A test app to help get decoding working in feed reader.", | |
"author": "Dave Winer <[email protected]>", | |
"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