Zend_JSON:Encode messing up - why?

前端 未结 3 1998
囚心锁ツ
囚心锁ツ 2021-02-13 02:50

My Zend_Json is messing up in encoding an object here. I\'m encoding an associative array which has two elements: Element one is another associative array while element 2 is an

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-13 03:37

    You fix this by updating your PHP version to a version later than version 5.2.7.

    There was a serious UTF-8 bug in PHP's json_encode function before that version. See the changelog for more details.


    Since you note that you are using PHP version 5.2.9.2 your version should be good :) Have you tried routing the specific contents of the html through PHP's json_encode() manually?

    Or maybe through utf8_encode() or utf8_decode()?

提交回复
热议问题