在页面中出现乱码的解决方案

<!DOCTYPE html>
<html>
<head>
<title>register.html</title>

<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<!-- 前者由jsp引擎对输出内容进行编码, 后者将由IE对页面内容进行编码,他们负责的编码对象不同。 -->
<!-- 这是是在服务端(tomcat)起作用,是告诉应用服务器采用何种编码输出  -->
<meta name="content-type" content="text/html; charset=UTF-8">
<!-- 是在客户端(浏览器)起作用,是告诉浏览器是采用何种编码方式显示HTML页面 -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

</head>
<body>
    ..........
</body>
</html>

 

posted @ 2015-07-27 23:35  DyncKathline  阅读(234)  评论(0编辑  收藏  举报