Home > Backend Development > PHP Tutorial > Quick solution to Chinese garbled characters in Linux php, _PHP tutorial

Quick solution to Chinese garbled characters in Linux php, _PHP tutorial

WBOY
Release: 2016-07-12 08:51:55
Original
898 people have browsed it

Quick solution to Linux php Chinese garbled code,

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"

was changed to

default_charset = "utf-8"

Then restart apache:

sudo /etc/init.d/apache2 restart

The above quick solution to Linux php Chinese garbled code is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support Bangkejia.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1127922.htmlTechArticleLinux php quick solution to Chinese garbled code, the php web page outputs garbled code under ubuntu, without involving database encoding Next: Modify "/etc/php5/apache2/php.ini" to default_chars...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template