当前位置: 代码迷 >> Java Web开发 >> 为什么<%@ include file="head.txt" %>的汉字全变成了?号啊该怎么解决
  详细解决方案

为什么<%@ include file="head.txt" %>的汉字全变成了?号啊该怎么解决

热度:973   发布时间:2016-04-17 14:36:31.0
为什么<%@ include file="head.txt" %>的汉字全变成了????号啊
用include标签包含的文件中的汉字在页面中全是??号,什么原因啊?代码如下

<%@   page   contentType= "text/html;   charset=GB2312 "   language= "java "   import= "java.sql.* "   errorPage= " "   %>
<html   >
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 "   />
<title> 无标题文档 </title>
</head>

<body>
<table   width= "200 "   border= "1 ">
      <tr>
          <td> <%@   include   file= "head.txt "   %> </td>
      </tr>
  </table>
<H1>
 
  <CENTER>  
      <p> 欢迎光临网上书店 </p>
      <p> &nbsp; </p>
  </CENTER>
</body>
</html>


------解决方案--------------------
http://community.csdn.net/Expert/topic/5532/5532558.xml?temp=.7193109
  相关解决方案