SMARTY 中文乱码解决方法
文章要告诉你SMARTY 中文乱码解决方法,其实很简单就是统一文档编码就OK了。
<!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=gb2312" />
<title>smarty 中文乱码解决方法</title>
</head>
<body>
你的模板文件是什么编码的?
你的php教程文件又是什么编码的?
如
html编码:<meta http-equiv="content-type" content="text/html; charset=gbk" />
</body>
</html>
文章地址:http://www.phprm.com/frame/34928.html
转载随意^^请带上本文地址!