|
作者: bailove [bailove] 论坛用户 | 登录 |
网页中IE对编码的选择是怎么样的啊 我这网页怎么会是"西文"编码(自动)的情况下 <!--#include file="top.asp" --> <!--#include file="char.asp" --> <%dim sort1 sort1="班委专区"%> <% dim id1 id1="13" if id1="" then%> <meta HTTP-EQUIV=REFRESH CONTENT='0; URL=error.asp'> <%else dim brs,bsql,browse bsql="select * from [article] where 编号="&id1&"" set brs=conn.execute(bsql) if brs.eof then%> <meta HTTP-EQUIV=REFRESH CONTENT='0; URL=error.asp'> <%else browse=brs("browse")+1 dim ors,osql set ors=server.createobject("adodb.recordset") osql="select * from [article] where 编号="&id1&"" ors.open osql,conn,1,3 ors.update ors("browse")=cdbl(browse) ors.update ors.close set ors=nothing %> <title><%=brs("name")%></title> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="tabel"> <tr> <td width="750" height="464" valign="top"><table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="center">现有游戏</div></td> </tr> <tr> <td height="60" valign="top"> <table width="158" border="0" align="left" cellpadding="0" cellspacing="0"> <%dim psql,prs,name2,pa pa=1 psql="select * from [article] where sort='"&sort1&"' order by 编号 desc" set prs=conn.execute(psql) if prs.eof then response.write("<div align=center ><font size=2>没有找到资料</font></div>") else do while not prs.eof if pa=10 then exit do name2=prs("name")%> <br> <td width="12" height="20"><img src="images/14.gif" width="10" height="10"></td> <td width="146" height="20"><a href=showarticle.asp?id=<%=prs("编号")%>&sort=<%=request.QueryString("sort")%> target="_blank" title=已浏览<%=prs("browse")%>次,发布日期:<%=prs("date")%>><%=left(name2,12)%></a></td> </br> <%prs.movenext pa=pa+1 loop end if%> </table></td> </tr> <tr> <td width="565"> </td> </tr> <tr> <td height="50" background="images/i_25.gif"><table width="45%" height="17" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"><%=brs("name")%></div></td> </tr> </table></td> </tr> <tr> <td height="33"> <div align="right">你是第<%=brs("browse")%>位浏览者 发布日期:<%=brs("date")%></div></td> </tr> <tr> <td><table width="555" border="0" align="center" cellpadding="0" cellspacing="0" style="WORD-WRAP: break-word"> <tr> <td width="562"> <%dim content content=(brs("content")) Response.Write(content)%> </td> </tr> </table></td> </tr> </table></td> </tr> </table> <%end if end if%> ------------------乱码 <!--#include file="top.asp"--> <!--#include file="char.asp"--> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>.::清风神韵阁留言本::.</title> <link href="other/td.css" rel="stylesheet" type="text/css"> </head> <body> <%dim admin admin=request.cookies("hjmchlq")("isadmin")%> <table width="750" height="465" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="762" height="73"><table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="590"> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="46"><img src="images/i_23.gif" width="46" height="31"></td> <td width="676" background="images/i_24.gif"> </td> <td width="28"><img src="images/i_28.gif" width="47" height="31"></td> </tr> </table></td> </tr> <tr> <td height="306" background="images/i_29.gif"> <form name="form1" method="post" action="speak.asp?action=yes"> <table width="698" height="270" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="4"> <table width="698" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75" height="25" class="a1"> <strong>留言人:</strong></td> <td width="255" height="25" class="a1"> <input name="username" type="text" id="username"> </td> <td width="70" height="25" class="a1"><strong> 主题:</strong></td> <td width="298" height="25" class="a1"> <input name="motif" type="text" id="motif"> </td> </tr> <tr> <td height="25" class="a1"><strong> E_mail:</strong></td> <td height="25" class="a1"> <input name="email" type="text" id="email"></td> <td height="25" class="a1"> <strong>OICQ:</strong></td> <td height="25" class="a1"> <input name="oicq" type="text" id="oicq"></td> </tr> <tr> <td height="25" class="a1"> <strong>个人主页:</strong></td> <td height="25" class="a1"> <input name="home" type="text" id="home"> </td> <td height="25" class="a1"> <strong>悄悄话:</strong></td> <td height="25" class="a1"> <select name="yn"> <option value="Y">是</option> <option value="N" selected>否</option> </select> <font color="#FF0000">(若选是,那只有管理员才能看)</font> </td> </tr> </table></td> </tr> <tr> <td height="35" colspan="4"class="a1"> <table width="579" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="63" height="30"> <input name="face" type="radio" value="face19" checked> <img src="images/face19.gif" width="19" height="19"></td> <td width="63" height="30"> <input type="radio" name="face" value="face20"> <img src="images/face20.gif" width="19" height="19"></td> <td width="71" height="30"> <input type="radio" name="face" value="face21"> <img src="images/face21.gif" width="19" height="19"> </td> <td width="63" height="30"> <input type="radio" name="face" value="face22"> <img src="images/face22.gif" width="19" height="19"></td> <td width="64" height="30"> <input type="radio" name="face" value="face23"> <img src="images/face23.gif" width="20" height="20"></td> <td width="63" height="30"> <input type="radio" name="face" value="face24"> <img src="images/face24.gif" width="19" height="19"></td> <td width="63" height="30"> <input type="radio" name="face" value="face25"> <img src="images/face25.gif" width="19" height="19"></td> <td width="64" height="30"> <input type="radio" name="face" value="face26"> <img src="images/face26.gif" width="20" height="20"></td> <td width="65" height="30"> <input type="radio" name="face" value="face27"> <img src="images/face27.gif" width="19" height="19"></td> </tr> </table></td> </tr> <tr> <td width="83" height="160" class="a1"> <div align="center"><strong>内容:</strong></div></td> <td width="408" height="160" class="a1"> <textarea name="content" cols="50" rows="9" id="content"></textarea></td> <td width="27" bgcolor="#DDF2FF" class="a1"> <p align="center"><strong>头</strong></p> <p align="center"><strong>像</strong></p></td> <td width="180" class="a1"> <select name="face1" class="box" id="face1" onChange="document.images['face'].src=options[selectedIndex].value;"> <% dim i,facestr,face face="face/1.gif" for i=1 to 36 Response.Write "<option " facestr="face/" & i & ".gif" Response.Write "value='" & facestr &"'>头像" &i &"</option>" next%> </select> <img id=face src="<%=face%>" alt="Head portrait"></td> </tr> <tr> <td height="30" colspan="4"> <div align="center"> <input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"> <strong><a href="speak.asp"><font color="#FF0000" size="2">高级留言</font></a></strong></div></td> </tr> </table> </form></td> </tr> <tr> <td><table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="46"><img src="images/i_31.gif" width="46" height="32"></td> <td width="657" background="images/i_32.gif"> </td> <td width="47"><img src="images/i_36.gif" width="47" height="32"></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="376"> <%dim sql,rs,page,k,tmppage,yn If Len(Trim(Request.QueryString("page")))=0 Then '返回目标页码的判断 page=1 Else page=CInt(Trim(Request.Querystring("page"))) End If set rs=Server.CreateObject("ADODB.RecordSet") if admin="isadmin" then sql="select * from [content] order by id DESC" else sql="select * from [content] where YN='N' order by id DESC" end if rs.open sql,conn,1,1 rs.PageSize=10 if not rs.eof then rs.AbsolutePage=page for k=1 to rs.PageSize yn=rs("YN") %> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="590"> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="46"><img src="images/i_23.gif" width="46" height="31"></td> <td width="676" background="images/i_24.gif"> </td> <td width="28"><img src="images/i_28.gif" width="47" height="31" border="0" usemap="#Map"></td> </tr> </table></td> </tr> <tr> <td height="210" background="images/i_29.gif"><table width="698" height="214" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="132" height="214" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="121" colspan="2"> <div align="center"><img src="<%=rs("face1")%>"></div></td> </tr> <tr> <td width="55%" height="20">留言人:</td> <td width="45%" height="20"><%=rs("username")%></td> </tr> <tr> <td height="26" colspan="2"> <div align="center"><%if yn="Y" then response.write("<font color=red>悄悄话</font>")%></div></td> </tr> </table></td> <td width="566" valign="top" class="unnamed2"> <table width="560" height="214" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="23" colspan="2" class="a1"> <img src="images/email.gif" width="16" height="16"> <a href="mailto:<%=rs("email")%>" title="<%=rs("username")%>的邮箱是<%=rs("email")%>">邮箱</a> <% if not rs("home")="" then %> <img src="images/HOME.GIF" width="16" height="16"> <a href="<%=rs("home")%>" title="浏览<%=rs("username")%>的主页" target="_blank">主页</a> <%end if%> <% if not rs("oicq")="" then%> <img src="images/oicq.gif" width="16" height="16"> <a href="http://search.tencent.com/cgi-bin/friend/user_show_info?ln=<%=rs("oicq")%>" title="<%=rs("username")%>的QQ是<%=rs("oicq")%>" target="_blank">OICQ</a> <%end if%> <img src="images/posttime.gif" width="16" height="15"> <a title="留言日期:<%=rs("data")%>">日期:<%=rs("data")%></a> </td> </tr> <tr> <td width="16" height="120" valign="top"> </td> <td width="544" valign="top"> <p><br> <img src="images/<%=rs("face")%>.gif"> <strong>主题:</strong><%=rs("motif")%></p> <p><strong>内容:</strong><br> <%dim content content=(rs("user_content")) Response.Write(ubbcode(content))%> <br> </p></td> </tr> <% if not rs("admin_content")="" then%> <tr> <td height="71" valign="top" class="a2"> </td> <td valign="top" class="a2"><br> <strong>管理员回复:<br> <br> </strong> <%dim content1 content1=(rs("admin_content")) Response.Write(ubbcode(content1))%> <br> </td> </tr> <%end if%> </table></td> </tr> </table></td> </tr> <tr> <td><table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="46"><img src="images/i_31.gif" width="46" height="32"></td> <td width="657" background="images/i_32.gif"><table width="75%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td> </td> <td> <% if admin="isadmin" then %> <div align=right><a href="del.asp?id=<%=rs("id")%>"><img src=images/i_37.gif border="0"></a><a href="admin_speak.asp?id=<%=rs("id")%>"><img src=images/i_35.gif border="0"></a></div> <%end if%> </td> </tr> </table></td> <td width="47"><img src="images/i_36.gif" width="47" height="32" border="0"></td> </tr> </table></td> </tr> </table> <% response.write("<br><div align=right>") rs.movenext if rs.EOF Then Exit For next end if if page <>1 then Response.Write "<a href=index.asp?page=1>首页</a> " end if tmppage = page - 1 if tmppage <= 0 then tmppage = 1 else Response.Write"<a href=index.asp?page="&tmppage&">上一页</a>" end if tmppage = page + 1 if tmppage >rs.PageCount then tmppage = page else Response.Write " <a href=index.asp?page="&tmppage&">下一页</a> " end if if Cstr(page) <> Cstr(rs.PageCount) and Cstr(rs.PageCount) <> 0 then Response.Write "<a href=index.asp?page="&rs.PageCount&">尾页</a>" end if if Cstr(rs.PageCount) <> 0 then Response.Write " 第<font color='#CCCCCC'>" & page & "/"&rs.PageCount&"</font>页" end if Response.Write " 共有<font color='#CCCCCC'>"&rs.RecordCount&"</font>条记录" rs.close set rs=nothing response.write("</div>") %> </td> </tr> <tr> <td height="16"> </td> </tr> </table> <map name="Map"> <area shape="rect" coords="2,18,17,29" href="http://hjmchlq.126.com" target="_blank"> </map> </body> </html> ----------------------正常 [此贴被 bailove(bailove) 在 01月21日22时13分 编辑过] |
地主 发表时间: 04-01-21 21:07 |
回复: bailove [bailove] 论坛用户 | 登录 |
帮我啊 |
B1层 发表时间: 04-01-21 21:34 |
回复: Aoming [aoming] 版主 | 登录 |
你试试在适当的地方加入一个 <META content="text/html; charset=gb2312" http-equiv=content-type> |
B2层 发表时间: 04-01-21 22:29 |
回复: bailove [bailove] 论坛用户 | 登录 |
问题解决了 非常的感谢Aoming |
B3层 发表时间: 04-01-21 22:42 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号