Re: [PHP-DEV] json_encode() and non-UTF8 strings

2012-04-03 Thread Laruence
On Tue, Apr 3, 2012 at 9:46 AM, Rasmus Lerdorf wrote: > On 04/02/2012 06:35 PM, Charlie Somerville wrote: >> Hi internals, >> >> I've created a pull request (https://github.com/php/php-src/pull/33) that >> changes json_encode to fall back to ASCII for strings that are not valid >> UTF-8. >> >> I

Re: [PHP-DEV] json_encode() and non-UTF8 strings

2012-04-02 Thread Adam Harvey
On 3 April 2012 09:46, Rasmus Lerdorf wrote: > On 04/02/2012 06:35 PM, Charlie Somerville wrote: >> I've created a pull request (https://github.com/php/php-src/pull/33) that >> changes json_encode to fall back to ASCII for strings that are not valid >> UTF-8. >> >> I ran into an issue in a produ

Re: [PHP-DEV] json_encode() and non-UTF8 strings

2012-04-02 Thread Rasmus Lerdorf
On 04/02/2012 06:35 PM, Charlie Somerville wrote: > Hi internals, > > I've created a pull request (https://github.com/php/php-src/pull/33) that > changes json_encode to fall back to ASCII for strings that are not valid > UTF-8. > > I ran into an issue in a production application involving PayP

[PHP-DEV] json_encode() and non-UTF8 strings

2012-04-02 Thread Charlie Somerville
Hi internals, I've created a pull request (https://github.com/php/php-src/pull/33) that changes json_encode to fall back to ASCII for strings that are not valid UTF-8. I ran into an issue in a production application involving PayPal IPN callbacks (which are sent encoded as windows-1252) and js