Home > Backend Development > PHP Tutorial > smarty options汉语言显示不正常

smarty options汉语言显示不正常

WBOY
Release: 2016-06-13 10:51:43
Original
792 people have browsed it

smarty options中文显示不正常
就显示星期一其他的都不显示好像就不是中文跟中文星期一会匹配其他的中文就不匹配了
require '../libs/Smarty.class.php';
$smarty = new Smarty;
 
$vals=array('1','2','3','4','5','6','7');
$output=array('星期一','星期二','星期三','星期四','星期五','星期六','星期日');
 
$smarty->assign('selected','selected');
$smarty->assign('vals',$vals);
$smarty->assign('output',$output);
 
$smarty->display('index.tpl');
?>

填写数字跟字母是可以的
求助怎么回事
 

------解决方案--------------------
乱码?
检查文件保存时的编码是否一致

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template