差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 上一修订版 两侧同时换到之后的修订记录 | ||
amh4.2:amh_with_php5.6_unsupport_gbk [2017/09/06 17:03] root 创建 |
amh4.2:amh_with_php5.6_unsupport_gbk [2017/09/06 17:08] root |
||
---|---|---|---|
行 6: | 行 6: | ||
原因: | 原因: | ||
\\ | \\ | ||
- | php 5.4.0 The default value for the encoding parameter was changed to UTF-8.\\ | + | =====php 5.4.0 The default value for the encoding parameter was changed to UTF-8.===== |
可见,在php5.4版本后,默认已将php编码改为UTF-8\\ | 可见,在php5.4版本后,默认已将php编码改为UTF-8\\ | ||
\\ | \\ | ||
解决办法:\\ | 解决办法:\\ | ||
- | 在/etc/php.ini 的[php]标签下增加以下参数\\ | + | 在/etc/php.ini 的[php]标签下增加参数default_charset = Off,然后重启amh环境生效\\ |
- | <code> | + | \\ |
- | default_charset = Off | + | \\ |
- | </code> | + | |
- | 然后重启amh环境\\ | + | |
<code> | <code> | ||
+ | sed -i -e '/[PHP]/a\default_charset = Off' txt | ||
/etc/init.d/amh-start | /etc/init.d/amh-start | ||
</code> | </code> | ||
\\ | \\ | ||
最后更改: in 2017/09/06 17:13