Re: [PHP] Malformed UTF-8 Data in JSON [SOLVED]

2010-07-14 Thread Benjamin Hawkes-Lewis
On 15 Jul 2010, at 04:12, Dave M G wrote: > 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, s

Re: [PHP] Malformed UTF-8 Data in JSON [SOLVED]

2010-07-14 Thread Dave M G
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 e