Home > Backend Development > PHP Tutorial > 两种设置php载入页面时编码的方法_PHP

两种设置php载入页面时编码的方法_PHP

WBOY
Release: 2016-06-01 11:50:39
Original
753 people have browsed it

php载入页面时设置页面编码的两种方法

1:输出meta标签:

1、在php mvc的控制器里面或php页面echo '';
2、在php页面或html页面

2:使用header函数

在控制器或页面里面header("content-type:text/html; charset=utf-8");

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