Re: Re: json_encode() behavior and the browser

From: Date: Wed, 01 Sep 2010 13:42:04 +0000
Subject: Re: Re: json_encode() behavior and the browser
References: 1 2 3 4  Groups: php.general php.general 
Request: Send a blank email to php-general+get-307808@lists.php.net to get a copy of this message
You should set the charset of your page by meta tag in its head. 2010/9/1 Christoph Boget <christoph.boget@gmail.com> > > It can have something to do with your browser codification (UTF8, > > ISO-8859-???). > > But why would that be the case? Is json_encode() actually encoding > the string differently in each case? And would it encode it > differently if I wrote a script to take the same input and ran it from > the command line? > > Is there a way I can get around this on the back end? Make it so that > it'll behave the same in all cases? > > thnx, > Christoph > -- João Cândido de Souza Neto

« previous php.general (#307808) next »