ThinkPHP 中为何不能正确显示汉字?

浏览:1009 发布日期:2014/01/29 分类:求助交流 关键字: ThinkPHP不能正确显示汉字?
各位大侠:
您们好,我遇到的问题是Tpl文件夹中index.html静态页面中的汉字在浏览器中不能正确显示,显示为乱码,请教如何解决?
静态页面index.html的路径:app/Tpl/Index/index.html


静态页面index.html的内容:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> hello {$name} </title>
</head>

<body>
hello , {$name} ! <br>
hello , {$test} ! <br>
hello , 您好,此汉字不能正确显示 !


</body>
</html>

静态页面中汉字在http://localhost 调用文件后汉字显示为乱码,但是英语显示正确,ThinkPHP框架的编码方式为utf-8 , 请教:如何才能在Tpl文件夹中让静态页面index.html显示汉字显示正确?请教!谢谢!


最佳答案
评论( 相关
后面还有条评论,点击查看>>