Re: Malformed UTF-8 Data in JSON [SOLVED]
| From: | Dave M G | Date: | Thu, 15 Jul 2010 03:12:46 +0000 |
| Subject: | Re: Malformed UTF-8 Data in JSON [SOLVED] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306899@lists.php.net to get a copy of this message | ||
Jim,
Thank you for responding.
Yes, stripslashes() was the problem. I've removed it and the code works.
However, it seems that when I send JSON data from a Javascript file, stripslashes() is necessary. That's why I had it there. I'm not entirely sure what's going on there, so obviously more experimentation is needed.
In any case, your suggestion has got me on the next step, so thanks for that tip. I'll add 2 cents to your tab!
--
Dave M G