Home  >  Article  >  php教程  >  PHP页面中文乱码问题,

PHP页面中文乱码问题,

WBOY
WBOYOriginal
2016-06-13 08:45:361216browse

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同理
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