Details
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 :
<b>Fatal error</b>: Uncaught exception 'Zend_Json_Exception' with message 'Illegal escape sequence 'u'' in ...Zend\Json\Decoder.php:390
Issue Links
| This issue is dependecy of: | ||||
| ZF-4957 | Problems with german Umlauts and getUserPosts() without tag in search query |
|
|
|
| ZF-4914 | Zend_Json needs Unicode characters endcoding/decoding support with '\uXXXX' notation. |
|
|
|
| This issue is related to: | ||||
| ZF-4957 | Problems with german Umlauts and getUserPosts() without tag in search query |
|
|
|
| This issue is related to: | ||||
| ZF-4054 | UTF8 character encoding for Zend_Json_Encoder |
|
|
|
quick fix
$ svn co http://framework.zend.com/svn/framework/standard/incubator/library/Zend/Json/