success("添加成功");当执行到它们时 提示页面给出的提示信息 是乱码怎么解决??  我的一些配置信息或其它的信息是这样的:---数据库的字体设置: UTF-8;---当前页"/> success("添加成功");当执行到它们时 提示页面给出的提示信息 是乱码怎么解决??  我的一些配置信息或其它的信息是这样的:---数据库的字体设置: UTF-8;---当前页">

ThinkPHP 乱码如何解决?

WBOY
Release: 2016-06-13 10:08:33
Original
1333 people have browsed it

ThinkPHP 乱码怎么解决??
----》》$this->error("图片不能为空!"); 或$this->success("添加成功");
当执行到它们时 提示页面给出的提示信息 是乱码怎么解决?? 

我的一些配置信息或其它的信息是这样的:
---数据库的字体设置: UTF-8;
---当前页面(Action)的字体设置: UTF-8;
---当前静态页面(例如:success.html)的字体设置: UTF-8;
---在惯例配置文件里:'TEMPLATE_CHARSET' =>'utf-8', // 模板模板编码
'OUTPUT_CHARSET' =>'utf-8', // 默认输出编码

怎么还会出现乱码呢? 真不明白 大家指点一下!!!




------解决方案--------------------
看文件是不是包含有bom头。
------解决方案--------------------
文件编码。。。。

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!