[TYPO3-core] RFC #11361: Backend TYPO3 AJAX-Interface: json encoded result empty if it contains non-utf-8 characters
Tobias Liebig
mail_typo3 at etobi.de
Fri Jun 19 15:23:42 CEST 2009
Martin Kutschker schrieb:
> Benjamin Mack schrieb:
>> Hi Masi,
>>
..
>
> To sum up my view:
>
> Check charset of incoming data. Reject anything but utf-8.
Incoming data got converted from this->requestCharset to this->charset if they differ.
So incoming UTF-8 data would be converted to the charset the backend uses/needs.
see typo3/classes/class.typo3ajax.php around line 70-75
> Check charset of outgoing data. Convert to UTF-8 (and hope the client
> accepts it).
Yes, excatly what bennys patch should do/fix
for me bennys patch works fine. So +1 after reading and testing
(i've attached a small testing ext which has an backend-module which does an ajax-json-call.)
regards
tobias
More information about the TYPO3-team-core
mailing list