帝国cms php乱码展示 急

WBOY
Release: 2016-06-13 10:35:09
Original
1067 people have browsed it

帝国cms php乱码显示 急急~~~~~~~~~


      mysql_connect('localhost','htebhcom','r5w8f8') or die('database server no exists!');
      mysql_select_db('htebhcom')or die('database error!');
      mysql_query("set names utf-8");
      mysql_query("SET CHARACTER_SET_CLIENT=utf-8"); //服务器设置客户端编码
      mysql_query("SET CHARACTER_SET_RESULTS=utf-8");//设置查询结果的编码
      ini_set("display_errors", "off");
      date_default_timezone_set('PRC');
      
    ?>
      $result=mysql_query("select * from phome_ask_speak order by id desc limit 6");  
      while($arr=mysql_fetch_array($result)){
    ?>  
       
     


  •  


数据库编码是utf_8,页面head也有写

 上面这短代码还是显示乱码。 请问是什么问题??????? 求指教·····

------解决方案--------------------
说明数据库里的数据的确不是Utf8的。
------解决方案--------------------
探讨

说明数据库里的数据的确不是Utf8的。
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