当前位置: 代码迷 >> HTML/CSS >> 惯用的HTML代码 meta编码方式、php header
  详细解决方案

惯用的HTML代码 meta编码方式、php header

热度:1056   发布时间:2012-12-19 14:13:14.0
常用的HTML代码 meta编码方式、php header

meta标签定义编码方式:<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

?

xhtml的DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">...</html>

?

php header定义编码方式:

header("Content-type: text/html; charset=utf-8");

?

超级常用的代码,老是记不住,放这边方便抄。

  相关解决方案