ZF-3395: UTF-8 values encoded with json_encode() not decodable with Zend_Json_Decoder::decode()
Description
When a string with the following characteristics : - In UTF-8 character encoding. - Containing characters that are different when encoded in latin1 (like "é"). Is encoded to JSON with PHP buildin function json_encode(), the result contains Unicode like "�e9".
When this is decoded with Zend_Json_Decoder::decode(), you get an exception :
{{Fatal error: Uncaught exception 'Zend_Json_Exception' with message 'Illegal escape sequence 'u'' in ...Zend\Json\Decoder.php:390}}
Comments
Posted by clive darr (osde8info) on 2009-03-04T09:30:12.000+0000
quick fix
$ svn co http://framework.zend.com/svn/framework/…
Posted by Benjamin Eberlei (beberlei) on 2009-03-20T07:50:51.000+0000
Moved from incubator to trunk in r14399, scheduled for 1.8 release