hel*_*y77 3 character-encoding apache-httpd
我已将 Apache 从 2.2 升级到 2.4,但遇到字符编码问题。在我的页面中,我有è=è
ò=ò
ì=ì
等...
在我的httpd.conf
我已经评论了默认值并添加了ISO-8859-1
(西欧)
#AddDefaultCharset UTF-8
AddDefaultCharset ISO-8859-1
Run Code Online (Sandbox Code Playgroud)
但这并没有改变任何事情。
小智 10
你在运行 php 吗?我认为您的问题不在 apache httpd.conf 中,而在 php.ini 中。
看到这个:http : //php.net/manual/en/ini.core.php#ini.default-charset “在 PHP 5.6 以后,“UTF-8”是默认值,它的值被用作默认字符编码……”