Bug #19354
closedAcronym plugin encoding problem
0%
Description
In French lng, all special characters are replaced by #65533; ( the '?' character).
The solution is to add the following lines into htmlarea.js (line 159) :
HTMLArea._getScript = function (i,asynchronous,url) {
if (typeof(url) == "undefined") var url = HTMLArea._scripts[i];
if (typeof(asynchronous) == "undefined") var asynchronous = true;
if (window.XMLHttpRequest) HTMLArea._request[i] = new XMLHttpRequest();
else if (window.ActiveXObject) {
var success = false;
for (var k = 0; k < HTMLArea.MSXML_XMLHTTP_PROGIDS.length && !success; k++) {
try {
HTMLArea._request[i] = new ActiveXObject(HTMLArea.MSXML_XMLHTTP_PROGIDS[k]);
success = true;
} catch (e) { }
}
if (!success) return false;
}
var request = HTMLArea._request[i];
if (request) {
request.open("GET", url, asynchronous);
if (asynchronous) request.onreadystatechange = HTMLArea.XMLHTTPResponseHandler(i);
if (window.XMLHttpRequest) {
request.overrideMimeType('text/html; charset=ISO-8859-1');
request.send(null);
} else if (window.ActiveXObject) {
request.setRequestHeader('text/html', 'charset=ISO-8859-1');
request.send();
}
if (!asynchronous) {
if (request.status == 200) return request.responseText;
else return '';
}
return true;
} else {
return false;
}
};
(issue imported from #M9387)
Files
No data to display