Project

General

Profile

Actions

Bug #14264

closed

getUpdateJS: broken when using UTF-8 and IE

Added by Simon Ihmig over 19 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Must have
Category:
Frontend
Target version:
-
Start date:
2004-08-05
Due date:
% Done:

0%

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

Description

The function getUpdateJS in class.tslib_content.php, used by feAdmin_Lib, does not work correctly when using an UTF-8 encoded site and Microsoft Internet Explorer.

The part in question is where it outputs: unescape('".rawurlencode($value)."')

The JS escape/unescape functions under IE behave differently than PHPs urlencode functions:
escape('ü') -> %FC ('ü': UTF-8 code for German u umlaut ü)
rawurlencode('ü') -> %C3%BC

when the JS function unescape is executed with the value of rawurlencode('ü'), the browser shows 'ü' instead of 'ü'.

With Netscape 7.1 it works ok.
See the attached utftest.php for a demonstration.

When using feAdmin_lib or 'sr_feuser_register', this problem leads to strange characters in the database when entering non-ASCII characters, e.g. German umlauts.

I temporarily solved this problem by not using unescape/rawurlencode in getUpdateJS, but I don't know if this does not lead to other problems somewhere!?

(issue imported from #M277)


Files

0000277-utftest.php (602 Bytes) 0000277-utftest.php Administrator Admin, 2004-08-05 13:14
0000277-getUpdateJSModified.txt (2.05 KB) 0000277-getUpdateJSModified.txt Administrator Admin, 2004-08-26 20:37
tslib_cObj.patch (2.01 KB) tslib_cObj.patch Administrator Admin, 2005-04-12 13:22
T3X_htutf8js-0_0_1-z-200508081249.t3x (9.05 KB) T3X_htutf8js-0_0_1-z-200508081249.t3x Administrator Admin, 2005-08-08 12:45
T3X_htutf8js-0_0_1-200508111048.t3x (37.9 KB) T3X_htutf8js-0_0_1-200508111048.t3x Administrator Admin, 2005-08-11 10:46
utf8_JS_2005-10-26.patch (5.83 KB) utf8_JS_2005-10-26.patch Administrator Admin, 2005-10-26 17:56
utf8_JS_2006-01-17.patch (5.85 KB) utf8_JS_2006-01-17.patch Administrator Admin, 2006-01-17 13:51
utf8_JS_2005-12-13.patch (7.56 KB) utf8_JS_2005-12-13.patch Administrator Admin, 2006-01-17 21:39

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #14699: JSMENU broken when using UTF-8ClosedBernhard Kraft2005-04-22

Actions
Related to TYPO3 Core - Bug #14984: Editpanel confirm dialogs (del/hide) don't display umlauts/etcClosedBernhard Kraft2005-09-21

Actions
Related to TYPO3 Core - Bug #14853: Japanese language extension does not work with UTF-8ClosedBernhard Kraft2005-07-10

Actions
Related to TYPO3 Core - Bug #17226: JS escape/unescape functions are differently than PHPs urlencode functions when using utf8 in mysql DBClosed2007-04-20

Actions
Actions

Also available in: Atom PDF