[TYPO3-core] RFC #8264 t3editor: "+" (plus) signs are replaced by spaces
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Wed Apr 30 09:22:49 CEST 2008
Tobias Liebig schrieb:
>
> Problem:
> this issue only happens when not using UTF-8 in BE
> it's somehow related to 0006827 <http://bugs.typo3.org/view.php?id=6827>
> for this i substituted "encodeURIComponent" with "escape" when charset
> is not UTF-8.
This is bogus! While encodeURIComponent() operates on utf-8 escape()
uses iso-8859-1. Both functions convert the local chracter set of the
page to their "native" charsets. Their decode conterparts do likewise in
the other direction.
This means we must not use escape() exceot for iso-8859-1. This also
means we can safely use a encodeURIComponent/decodeURIComponent() pair
within Javascript as the functions do the necessary conversions
themselves. When it comes to ineratction with PHP the PHP script has to
take care to do the right encoding on the server side, which isn't very
hard to do.
Masi
More information about the TYPO3-team-core
mailing list