php从mysql数据库中获取数据乱码

网页上显示???????

连接数据库之后插入如下代码:

$char = "utf8" ;
mysqli_set_charset( $con , $char );

原文地址:https://www.cnblogs.com/xiaoguotongxue/p/6692707.html