----》》$this->error("图片不能为空!"); 或$this->success("添加成功");
当执行到它们时 提示页面给出的提示信息 是乱码怎么解决?? 我的一些配置信息或其它的信息是这样的:
---数据库的字体设置: UTF-8;
---当前页面(Action)的字体设置: UTF-8;
---当前静态页面(例如:success.html)的字体设置: UTF-8;
---在惯例配置文件里:'TEMPLATE_CHARSET' =>'utf-8', // 模板模板编码
'OUTPUT_CHARSET' =>'utf-8', // 默认输出编码怎么还会出现乱码呢? 真不明白 大家指点一下!!!
当执行到它们时 提示页面给出的提示信息 是乱码怎么解决?? 我的一些配置信息或其它的信息是这样的:
---数据库的字体设置: UTF-8;
---当前页面(Action)的字体设置: UTF-8;
---当前静态页面(例如:success.html)的字体设置: UTF-8;
---在惯例配置文件里:'TEMPLATE_CHARSET' =>'utf-8', // 模板模板编码
'OUTPUT_CHARSET' =>'utf-8', // 默认输出编码怎么还会出现乱码呢? 真不明白 大家指点一下!!!
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>大家好
<table border="1">
<tr>
<th width="10%">ID</th>
<th width="30%">中国</th>
<th width="30%">password</th>
</tr>
<volist name="list" id="vo">
<tr>
<td align="center">{$vo['id']}</td>
<td>{$vo['name']}</td>
<td>{$vo['pass']}</td> </tr>
</volist>
</table>
</body>
</html>
页面为UTF8时,以上代码在输出后“中国”显示为乱码,数据库中文数据显示正常。而页面为GB2312时,
以上代码在输出后“中国”显示为正常,数据库中文数据显示乱码。请问这是为什么?
<html>
<head></head>
<body>
<table border="1">
<tr>
<th width="10%">ID</th>
<th width="30%">中国</th>
<th width="30%">password</th>
</tr>
<volist name="list" id="vo">
<tr>
<td align="center">{$vo['id']}</td>
<td>{$vo['name']}</td>
<td>{$vo['pass']}</td>
</tr>
</volist>
</table>
</body>
</html>
页面为UTF8时,以上代码在输出后“中国”显示为乱码,数据库中文数据显示正常。而页面为GB2312时,
以上代码在输出后“中国”显示为正常,数据库中文数据显示乱码。请问这是为什么?