Home >Backend Development >PHP Tutorial > PHP初记(5) - 设置页面编码

PHP初记(5) - 设置页面编码

WBOY
WBOYOriginal
2016-06-13 13:04:25837browse

PHP小记(5) - 设置页面编码

PHP设置页面编码:?

header("Content-Type:text/html;charset=utf-8")

?

注:此语句前,页面不能有echo或print或HTML脚本输出到浏览器,否则会报错。

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