在ubuntu下php网页输出乱码,在不涉及数据库编码的情况下:

修改“/etc/php5/apache2/php.ini”将

default_charset = "iso-8859-1"

修改为
default_charset = "utf-8"

然后重启apache:

sudo /etc/init.d/apache2 restart

 

 推荐一个自己业余时间开发的网盘搜索引擎,360盘搜www.360panso.com

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
猜你喜欢
  • 2022-02-12
  • 2022-12-23
  • 2021-04-09
  • 2021-05-23
  • 2021-06-26
  • 2021-08-24
  • 2021-06-14
相关资源
相似解决方案