[TYPO3-core] RFX: #9286: use native JSON-methods instead of 3rd party json script

Steffen Kamper info at sk-typo3.de
Thu Sep 4 17:40:19 CEST 2008


Stanislas Rolland schrieb:
> Martin Kutschker a écrit :
>>>
>>> since PHP 5.2.0 there is no need to include 3rd party script for
>>> JSON-encoding
>>>
>>> Use php funtion json_encode instead
>>
>> -1 (for now)
>>
>> When the function was added it was said that the native function has
>> defects, so it has been decided that we should use this lib instead.
>>
>> Unfortunately I do not know which troubles there are, I only trusted
>> those people who reported this problems.
>>
> The native function works only on utf-8 data. Could it be a problem in 
> some installations?
> 
> Stanislas
> 

Hi Stan,

the 3rd party script also only allow utf-8:
"All strings should be in ASCII or UTF-8 format! "

So it's the same. But good that you point to this, function could 
convert to utf-8 before encoding. This should work for BE and FE.

vg Steffen


More information about the TYPO3-team-core mailing list