FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Re: Php code for ajax encoding
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Php code for ajax encoding [message #169393] Thu, 09 September 2010 09:56
B.r.K.o.N.j.A. is currently offline  B.r.K.o.N.j.A.
Messages: 1
Registered: September 2010
Karma:
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
[Message index]
 
Read Message
Previous Topic: Downloading files, without internet renumbering...
Next Topic: display data from mysql db in text box??
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 11:37:40 GMT 2024

Total time taken to generate the page: 0.04625 seconds