php 设置字符集编码为utf-8

1.如果你的php文件在浏览器显示的字符编码有问题,需要在php文件中做一下设置

<?php
    // 服务器读取的  编码设置
    header('Content-type:text/html;charset=utf-8');
?>

猜你喜欢

转载自blog.csdn.net/weixin_39907729/article/details/81910968