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

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

WBOY
Release: 2016-06-13 13:04:25
Original
836 people have browsed it

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

PHP设置页面编码:?

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

?

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

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