读书人

为什么lt;%@ include file=quot;head.txtquot; %

发布时间: 2012-03-09 16:54:57 作者: rapoo

为什么<%@ 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>   </p>
</CENTER>
</body>
</html>


[解决办法]
http://community.csdn.net/Expert/topic/5532/5532558.xml?temp=.7193109

读书人网 >Java Web开发

热点推荐