utf-8和uft8

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

mysqli_query($conn,"set names utf8");
原文地址:https://www.cnblogs.com/souroot/p/4453554.html