Posted on 2010-09-21
I have the following problem :
---- ccc.php -----
This file contains the correct header info to display greek.
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-7" />
---- ccc.js -----
Inside this file if i write an alert('Greek characters here') everything will display correctly.
On a click event of a div located in ccc.php I load another php file called renew.php.
On the callback of the load procedure :
---- renew.php ----
header('Content-Type: text/html; charset=ISO-8859-7');
Now the problem is that renew.js script... working for renew.php CANNOT display the ISO-8859-7 characters. Its as if it never gets the information from the headers. And display everything with black squares. (possibly utf-8 encoding)
I also tried to use ajax with contentType:
(solution from stack overflow)
but with no luck.
Thanks for your help.