LINUX.ORG.RU

если кто-то слолкнулся с аналогичной проблеммой, нашел решение в гугле:

http://www.webmasterworld.com/javascript/3341129.htm


I solve the problem myself after a small hour of debugging.

I just post the solution in case some of you is having a similar error in IE7...
I'll personnally call this a BUG.

I had to remove the two following from my header
//$charset="utf-8";
//header("Content-Type: text/html; charset=\".$charset.\"");

But I have left the two following line as it is.
mb_internal_encoding("UTF-8");

$connect=@mysql_connect("$server","$user","$pass") or die ("Unable to connect server");
$db_select=@mysql_select_db("$database") or die ("Unable to get table");
mysql_query("SET NAMES 'utf8'");

Works in IE7, FF and Op. now.

The downside is that I need to have another header (with baseurl, environment data, password, databases, tables, etc...) specifically for php page called using AJAX. So, if one day, I must change something (like changing host or password), then I have to change it twice now... RRRRRR!

Thanks

hose
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.