Issues

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:

Description

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

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts