Home > php教程 > php手册 > body text

PHP页面中文乱码问题,

WBOY
Release: 2016-06-13 08:45:36
Original
1266 people have browsed it

PHP页面中文乱码问题,

首先纯html页要用meta标签声明编码<br /><meta http-equiv="Content-Type" content="text/html; charset="utf-8" /><br />有php输出的页要使用header函数声明编码<br />header("Content-Type:text/html;   charset=gb2312"); <br />同时文件也要另存为utf-8格式~~GBK同理
Copy after login
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!