Home »
Imported messages »
comp.lang.php »
Re: Php code for ajax encoding
Re: Php code for ajax encoding [message #169393] |
Thu, 09 September 2010 09:56 |
B.r.K.o.N.j.A.
Messages: 1 Registered: September 2010
Karma: 0
|
Junior Member |
|
|
Just add following line in your php script that generates content that
you're retrieving using ajax. All you need (and this code snippet does it)
to do is to set appropriate charset/encoding so the browser knows what
content encoding it's getting back.
header( 'Content-type: text/html; Charset: utf-8');
(im typing this from the top of my head so syntax is probably wrong :) )
Brko
|
|
|
Goto Forum:
Current Time: Fri Nov 22 17:26:15 GMT 2024
Total time taken to generate the page: 0.02398 seconds