Project

General

Profile

Actions

Bug #19354

closed

Acronym plugin encoding problem

Added by hans almost 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-09-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Clipboard02.jpg (95.9 KB) Clipboard02.jpg Administrator Admin, 2008-09-19 09:38

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #19353: Acronym plugin encoding problemClosedStanislas Rolland2008-09-19

Actions

No data to display

Actions

Also available in: Atom PDF