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

Description

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').

Comments

No comments to display