Menu

Char-set encoding error?

gaRFio
2007-05-10
2013-04-22
  • gaRFio

    gaRFio - 2007-05-10

    I'm having problems trying to return to the ajax response french, greek... words having language special chars as T<b>é</b>l<b>é</b>charger, <b>ÊáôåâÜóôå</b>, etc... Here an example: <img src="http://img527.imageshack.us/img527/7321/dibujocb6.jpg">

    Is any way to solve this problem? Thanks

    Egoitz

     
    • Jim Plush

      Jim Plush - 2007-06-07

      hey Egoitz, you have to set the header properly in your API script to return the character encoding you want.

      check out www.php.net/header

       
      • reallimk

        reallimk - 2007-10-09

        I've tried

        header('Content-type: text/html; charset=UTF-8');

        but it doesn't work with my script.
        Is that wrong?

         
        • gaRFio

          gaRFio - 2007-10-09

          try urlencode() :)

           

Log in to post a comment.