[jQuery] Re: $.getJSON() Special Chars

2009-06-17 Thread Obi1
Ok, solved the problem using htmlentities() in all variables before assingnig them to smarty.

[jQuery] Re: $.getJSON() Special Chars

2009-06-17 Thread Obi1
everything is set to use utf-8. though i've notice now, first time i call the getJSON, on $ (document).ready, the response comes fine, with the right chars. the problem happens whe i click a button that calls the method again, witch is meant to perform a search. On 16 Jun, 19:23, James wrote: >

[jQuery] Re: $.getJSON() Special Chars

2009-06-16 Thread James
Make sure the page your Javascript is on is also also uses utf-8 content-type (e.g. in meta tags). Same for your PHP script. On Jun 16, 1:45 am, Obi1 wrote: > Hi, > > I'am having a bit of a problem with special chars in a getJSON > response which is the result from php and smarty > > the file ca