Skip to content

Instantly share code, notes, and snippets.

Ron Wilhelm ronw23

  • Denver, CO
Block or report user

Report or block ronw23

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Wiki to HTML w. plugins.js
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'>");
View testDecode.js
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);
});
You can’t perform that action at this time.