On some systems it is UTF-8, on others latin-1. How do you set this? Is it something in php.ini?
在某些系统上,它是UTF-8,在其他系统上是latin-1。你怎么设置这个?它是php.ini中的东西吗?
(I know you can set the encoding/charset for a given page by setting HTTP headers, but this is not what I am looking for.)
(我知道你可以通过设置HTTP头来设置给定页面的编码/字符集,但这不是我要找的。)
Alex
2 个解决方案
#1
0
There is a default_charset setting in php.ini
php.ini中有一个default_charset设置
#2
0
If you need to change the character set of non php files you can tell apache what to use. AddDefaultCharset utf-8
如果你需要更改非php文件的字符集,你可以告诉apache使用什么。 AddDefaultCharset utf-8
#1
0
There is a default_charset setting in php.ini
php.ini中有一个default_charset设置
#2
0
If you need to change the character set of non php files you can tell apache what to use. AddDefaultCharset utf-8
如果你需要更改非php文件的字符集,你可以告诉apache使用什么。 AddDefaultCharset utf-8