I am trying to load rss which has German characters included (ö, ä, ü...)
xhrRequest.responseText already contains converted characters (\u00f ...)
Without manually replacing is there to force right encoding so original characters stay visible?
var url = 'https://apolut.net/feed/podcast/'
xhrRequest = new XMLHttpRequest();
xhrRequest.onreadystatechange = function() {
if (xhrRequest.readyState == 4) {
}
}
xhrRequest.onerror = function(e) {
};
xhrRequest.open('GET', url);
xhrRequest.setRequestHeader("Content-Type", "text/xml");
xhrRequest.send();
I do have utf on the top of page:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Via Active questions tagged javascript - Stack Overflow https://ift.tt/Aosi8g1
Comments
Post a Comment