其他试了很多种办法,结果最直接最简单的办法就是在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);本文共 266 字,大约阅读时间需要 1 分钟。
其他试了很多种办法,结果最直接最简单的办法就是在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);转载于:https://www.cnblogs.com/lolix/p/5074702.html