您们好,我遇到的问题是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 xm
<head>
<me
<ti
</head>
<body>
hello , {$name} ! <br>
hello , {$test} ! <br>
hello , 您好,此汉字不能正确显示 !
</body>
</html>
静态页面中汉字在http://localhost 调用文件后汉字显示为乱码,但是英语显示正确,ThinkPHP框架的编码方式为utf-8 , 请教:如何才能在Tpl文件夹中让静态页面index.html显示汉字显示正确?请教!谢谢!
最佳答案