php乱码如何解决

WBOY
Release: 2016-06-13 13:49:59
Original
1199 people have browsed it

php乱码怎么解决
我的页面编码是utf8的 
mysql数据库的编码也是utf8的, 
我用的是fleaphp+smarty 
不知道是不是fleaphp搞得鬼啊, 
我用fleaphp中Action中的方法execute("set names 'utf8'"); 
也不行,现在还是解决不了,愁!! 


------解决方案--------------------
  在配置文件里写 上 'responseCharset'=>'UTF-8', 
 或许跟你的配置有关

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!