PHP MYSQL读取中文乱码的解决办法
其他试了很多种办法,结果最直接最简单的办法就是在SELECT前先发送设置。如下
mysqli_query($con,"SET NAMES 'UTF8'");
mysqli_query($con,"SET CHARACTER SET UTF8");
mysqli_query($con,"SET CHARACTER_SET_RESULTS=UTF8'");
$result = mysqli_query($con,$querySql);
其他试了很多种办法,结果最直接最简单的办法就是在SELECT前先发送设置。如下
mysqli_query($con,"SET NAMES 'UTF8'");
mysqli_query($con,"SET CHARACTER SET UTF8");
mysqli_query($con,"SET CHARACTER_SET_RESULTS=UTF8'");
$result = mysqli_query($con,$querySql);