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

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

2010-07-14 Thread Jim Lucas
Dave M G wrote: > PHP Users, > > I'm decoding some JSON data in PHP to convert it into an array. > > However, it's not working, and json_last_error() is returning a value of > "4", which I believe means "Malformed UTF-8 characters, possibly > incorrectly encoded". > > I try at every turn in ever

[PHP] Malformed UTF-8 Data in JSON

2010-07-14 Thread Dave M G
PHP Users, I'm decoding some JSON data in PHP to convert it into an array. However, it's not working, and json_last_error() is returning a value of "4", which I believe means "Malformed UTF-8 characters, possibly incorrectly encoded". I try at every turn in every setting to ensure that all m