//设置请求头
header("Status: 200 OK");
header('Content-Type: application/xml; charset=UTF-8');
//设置数据库字符集
$sql = "set names utf8";
PHP 连接数据库前设置编码 --部分
最新推荐文章于 2021-03-09 19:42:01 发布
//设置请求头
header("Status: 200 OK");
header('Content-Type: application/xml; charset=UTF-8');
//设置数据库字符集
$sql = "set names utf8";