只要在PHP的最上面增加一段
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta http-equiv='Content-Type' content='text/html'; charset='utf-8' />
将上面这段话增加到就可以不乱码了。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号