使用jquery加载显示特殊字符

时间:2014-02-04 19:21:10

标签: jquery character-encoding doctype

我正在使用jquery .load()方法在我的网站上加载php页面。当我测试要加载的页面时:

http://www.astralinternet.com/top-10-raisons.php

所有特殊的法国角色都能正确显示出来。但是当我在我的脚本中加载这个页面时:

$('.BlackBox_Display').load('http://www.astralinternet.com/top-10-raisons.php', function() {
  //My code to center the DIV
});

我所有的法语特殊字母“é,è,à,...”都没有在IE中正常显示(但在Chrome浏览器中是吗?)

任何人都可以给我一个指针,指向调试我的页面的位置吗?我是xhtml严格的。

由于

1 个答案:

答案 0 :(得分:1)

可能是字符编码问题尝试发送标题

<?php header('Content-Type: text/html; charset=ISO-8859-15'); ?>

在你的php文件中

相关问题