其他试了很多种办法,结果最直接最简单的办法就是在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);
时间: 2024-11-02 21:41:00
其他试了很多种办法,结果最直接最简单的办法就是在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);