Home  >  Article  >  Backend Development  >  php乱码如何解决

php乱码如何解决

WBOY
WBOYOriginal
2016-06-13 13:49:591154browse

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


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

Statement:
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