Home > php教程 > php手册 > Linux php 中文乱码的快速解决方法,

Linux php 中文乱码的快速解决方法,

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 08:39:19
Original
935 people have browsed it

Linux php 中文乱码的快速解决方法,

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

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

default_charset = "iso-8859-1"

修改为

default_charset = "utf-8"

然后重启apache:

sudo /etc/init.d/apache2 restart

以上这篇Linux php 中文乱码的快速解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持帮客之家。

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
Latest Issues
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template