Project

General

Profile

Actions

Bug #19353

closed

Acronym plugin encoding problem

Added by hans about 16 years ago. Updated about 6 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 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)


Files

Clipboard02.jpg (95.9 KB) Clipboard02.jpg Administrator Admin, 2008-09-19 09:37
rtehtmlarea_bugfix_9386.patch (2.53 KB) rtehtmlarea_bugfix_9386.patch Administrator Admin, 2008-09-26 04:22

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #19354: Acronym plugin encoding problemClosedStanislas Rolland2008-09-19

Actions
Actions #1

Updated by Stanislas Rolland about 16 years ago

I assume that you are using TYPO3 4.2+.

Please apply and test the attached patch.

Actions #2

Updated by Stanislas Rolland about 16 years ago

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

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF