在文件的第一行,加入下面这一句: header("Content-Type: text/html; charset=utf8"); 然后在把文件以utf-8的格式保存起来就行了 相关文章: 2022-12-23 2021-12-05 2021-08-08 2021-07-15 2021-08-04 2021-06-13 2021-10-06 2021-10-19