ZF-7964: Zend_Json_Exception: Illegal escape sequence on \\u


I get a "Zend_Json_Exception: Illegal escape sequence" exception when I execute :

$input = 'abc \\uBfAe';
$encoded = Zend_Json_Encoder::encode($input);
$decoded = Zend_Json_Decoder::decode($encoded);

It does work when : * I use internal PHP JSON module. * $input has a space between \u and the rest of the text (e.g. 'abc \u BfAe'). * \u is followed by a character > f (e.g. 'abc \uZfAe').


No comments to display