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

Issue Type: Bug Created: 2009-09-28T09:14:31.000+0000 Last Updated: 2011-08-20T12:40:14.000+0000 Status: Open Fix version(s): Reporter: Lode Blomme (lode) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Json

  • zf-crteam-padraic
  • zf-crteam-priority

Related issues: Attachments:


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

<pre class="highlight">
$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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.