首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

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

2012-03-09 
为什么%@ include filehead.txt %的汉字全变成了????号啊用include标签包含的文件中的汉字在页面中全

为什么<%@ 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

热点排行