时间:2021-07-01 10:21:17 帮助过:8人阅读
修改“/etc/php5/apache2/php.ini”将
default_charset = "iso-8859-1"
修改为
default_charset = "utf-8"
然后重启apache:
sudo /etc/init.d/apache2 restart
http://www.bkjia.com/PHPjc/440127.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/440127.htmlTechArticle在ubuntu下php网页输出乱码,在不涉及数据库编码的情况下: 修改/etc/php5/apache2/php.ini将 default_charset = "iso-8859-1" 修改为 default_charset = "utf-8"...