在测试test.tpl的时候,中文出现乱码?
$smarty->assign('articletitle','文章标题'); $arr = array('articlecontent'=>array('title'=>'smarty的学习','author'=>'小明')); $smarty->assign('arr',$arr); //展示模板 $smarty->display('test.tpl');
$smarty->assign('articletitle','文章标题'); $arr = array('articlecontent'=>array('title'=>'smarty的学习','author'=>'小明')); $smarty->assign('arr',$arr); //展示模板 $smarty->display('test.tpl');
2016-03-20
举报