utf-8和uft8

设置mysql连接用的字符编码,要用uft8,而不是uft-8

mysqli_query($conn,"set names utf8");

 

posted @ 2015-04-24 15:10  souroot  阅读(214)  评论(0编辑  收藏  举报