Re: Re: json_encode() behavior and the browser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You should set the charset of your page by meta tag in its head.


2010/9/1 Christoph Boget <christoph.boget@xxxxxxxxx>

> > 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux