[TYPO3-core] RFC: #11458: Russian chars in the comments are encoded wrong when changing the stage of an element

Martin Kutschker masi-no at spam-typo3.org
Wed Jul 15 17:12:45 CEST 2009


Steffen Kamper schrieb:
> Hi,
> 
> this is a SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11458
> 
> Branches: Trunk, 4_2
> 
> Problem:
> In the Versioning-Modul:
> When you change the stage for an element, for example sending it to the
> reviewer, a javascript popup box opens where you can enter a comment.
> When you enter russian chars they aren't stored correct. This is because
> the comment is sended through the javascript function escape().
> 
> Solution:
> use encodeURI() instead of escape()

There must be some code which does the unescape(). It should be changed
to decodeURI(). Sidenote: Even if it's working for you without
decodeURI() on utf-8, it will break on non-utf8 back-ends, because
encodeURI() converts the string from the page-charset to utf-8.

Masi


More information about the TYPO3-team-core mailing list