聪明的UTF_8

时间:2014-12-02 17:09:01

标签: php html5 utf-8 smarty

我有一个简单的页面,我想要显示这个“سلام”,但聪明的节目“????”

这是我的php文件:

require '../libs/Smarty.class.php';
$smarty = new Smarty;

//$smarty->force_compile = true;
$smarty->debugging = true;
$smarty->caching = true;
$smarty->cache_lifetime = 120;

$smarty->assign("word", "سلام", true);

$smarty->display('index.tpl');

然后我将它添加到我的header.tpl:

  <meta http-equiv="content-type" content="text/html; charset=UTF-8">  

0 个答案:

没有答案