Home >Backend Development >PHP Tutorial >Linux php Chinese garbled solution_PHP tutorial

Linux php Chinese garbled solution_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:16:01890browse

The php web page outputs garbled code under Ubuntu, without involving database encoding:

Modify "/etc/php5/apache2/php.ini" to

default_charset = "iso-8859-1"

Modify to
default_charset = "utf-8"

Then restart apache:

sudo /etc/init.d/apache2 restart

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440127.htmlTechArticleThe php web page outputs garbled code under ubuntu, without involving database encoding: Modify /etc/php5/apache2 /php.ini changes default_charset = "iso-8859-1" to default_charset = "utf-8"...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn