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
Switch to threaded view of this topic 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: 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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sun Nov 24 15:13:37 GMT 2024

Total time taken to generate the page: 0.02073 seconds