Issue Bug Closed

#19353Acronym plugin encoding problem

hans 09/19/08, 09:37 updated 10/02/18, 12:29

Description

In French lng, all special characters are replaced by #65533; ( the ‘?’ character).

The solution is to add the following line 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 #M9386)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 3

  1. Stanislas Rolland commented 09/26/08, 04:23

    I assume that you are using TYPO3 4.2+.

    Please apply and test the attached patch.

  2. Stanislas Rolland commented 09/26/08, 17:58

    Committed to SVN TYPO3core branch TYPO3_4-2 (revision 4251) and trunk (revision 4252).

  3. Benni Mack changed status Resolved Closed 10/02/18, 12:29