html5代码一:无添加 <meta charset="UTF-8">
<!DOCTYPE HTML>
<html ><head>
<title>bootstrap开发->登陆页面</title>
<meta http-equiv="charset" content="utf-8">
<meta http-equiv="expires" content="31 Dec 2015">
<meta name="author" content="tanglihong">
<meta name="keywords" content="bootstrap">
</head>
<body>
<h1>你好,世界!</h1>
</body>
</html>
html5代码二:meta添加了charset="UTF-8"
<!DOCTYPE HTML>
<html >
<head>
<title>bootstrap开发->登陆页面</title>
<meta charset="UTF-8">
<meta http-equiv="charset" content="utf-8">
<meta http-equiv="expires" content="31 Dec 2015">
<meta name="author" content="tanglihong">
<meta name="keywords" content="bootstrap">
</head>
<body>
<h1>你好,世界!</h1>
</body>
</html>
为什么代码一显示的是乱码 <meta http-equiv="charset" content="utf-8"> 这段不是设置字符集吗?
代码二加上后才正常的显示中文