[Typo3-dev] Charset Bug ?
Kraft Bernhard
kraftb at gmx.net
Thu Mar 10 00:27:27 CET 2005
Hallo,
I think I've found a bug. This one just occurs when forceCharset is set
to utf-8.
I think affected are all "plugin.feadmin." forms. pherhaps even other.
German Umlauts get converted to a 2-character string. this occurs even
if i set a default value via:
plugin.feadmin.fe_users.create.defaultValues.country = Österreich
The problem is that the POSTed/configured strings/characters get encoded in
class.tslib_content.php in line 5679:
$JSPart.="
updateForm('".$formName."','".$arrPrefix."[".$fKey."][]',unescape('".rawurlencode($Nvalue)."'))";
Either the rawurlencode or the unescape (or both together) are breaking the forms.
I propose to change the "rawurlencode" to "addslashes". As we are in a JavaScript String every
character is allowed except the one which quotes the string. This worked for me.
Any chance to see this in 3.8 ?
I use utf-8 on almost all my sites now.
greets,
Bernhard
--
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
More information about the TYPO3-dev
mailing list