Home > Backend Development > PHP Tutorial > Chinese garbled problem in PHP page, _PHP tutorial

Chinese garbled problem in PHP page, _PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-12 08:58:26
Original
822 people have browsed it

Chinese garbled problem in PHP page,

首先纯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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1104061.htmlTechArticlePHP page Chinese garbled problem, first of all, the pure HTML page must use the meta tag to declare the encoding meta http-equiv="Content- Type" content="text/html; charset="utf-8" / Pages with PHP output must use the header function...
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template