Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在某些系统上是 UTF-8,在其他系统上是 latin-1。你怎么设置这个?它是 php.ini 中的东西吗?
(我知道您可以通过设置 HTTP 标头为给定页面设置编码/字符集,但这不是我想要的。)
亚历克斯
php.ini 中有一个 default_charset 设置
如果您需要更改非 php 文件的字符集,您可以告诉 apache 使用什么。添加默认字符集 utf-8