[TYPO3-core] RFC #8264 t3editor: "+" (plus) signs are replaced by spaces

Tobias Liebig mail_news at etobi.de
Tue Apr 29 22:03:45 CEST 2008


This is an SVN patch request.

Type: Bugfix

Bugtracker:
    http://bugs.typo3.org/view.php?id=8264
    "+" (plus) signs are replaced by spaces


Branches: TYPO3_4-2, trunk

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.
"encodeURIComponent" always uses UTF-8 so it's not usable in ISO-8859
environments.
 
"escape" encodes umlauts (äöü) very well, but *don't* encode "+"


Unfortunately "+" means " " (space) in URL-encoding, so all "+" signs
get lost.

Solution:
replace + and other not encoded char manually after encoding with "escape".

regards
  tobias


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_t3editor_20080429_8264.diff
Type: text/x-patch
Size: 2070 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080429/1ea84721/attachment.bin 


More information about the TYPO3-team-core mailing list