Skip to content

Instantly share code, notes, and snippets.

View ronw23's full-sized avatar

Ron Wilhelm ronw23

View GitHub Profile
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);
});
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jq = document.createElement('script');
jq.src = "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
$(document.head).append("<link href='http://fed.wiki.org/style/style.css' rel='stylesheet' type='text/css' media='screen'>");
$(document.head).append("<link href='http://fed.wiki.org/theme/style.css' rel='stylesheet' type='text/css' media='screen'>");