note 83700 deleted from function.json-encode by nlopess
| From: | nlopess@php.net | Date: | Sun, 08 Jun 2008 21:52:25 +0000 |
| Subject: | note 83700 deleted from function.json-encode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140252@lists.php.net to get a copy of this message | ||
Note Submitter: juanjo at moflus dot com
----
To json_encode a non utf8 array I use this:
<?php
json_encode(eval('return '.utf8_encode(var_export($arr, true)).';'));
?>