[求助]关于DW中显示UTF-8码的问题
我最近看到一个ASP文件,在DW中显示时其中有部分是乱码(UTF-8码),我直接改成汉字后在浏览器中却不能显示,具体代码如下: <!--#include file="inc/conn.asp"--> <!--#include file="inc/set.asp"--> <!--#include file="inc/dll.asp"--> <!--#include file="inc/inc.asp"--> <!--#include file="inc/indexvar.asp"--> <% title="±¾Õ¾Ê×Ò³" call pass() call top() 'µÚÒ»´ó±í¸ñ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0' align='center' class='bgcolor'><tr><td class='left'></td><td class='width' valign='top'>") YCMS("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'>") call br() '»áÔ±µÇ½¿Ú¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><td class=lefttopcenter> ¡ù »áÔ±µÇ½</td><td class=lefttopright></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' class='leftcentercenter' height=170>") call login() YCMS("</td><td class=leftcenterright></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class='leftfootcenter'></td><td class='leftfootright'></td></tr></table>") call br() YCMS("</td><td width='5'></td><td valign='top' align=right>") call br() 'ÐÂÎÅ¡¢¹«¸æ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=righttopleft></td><td class=righttopcenter> ¡ù ÐÂÎŶ¯Ì¬<span style='width=400px'></span><a href=news.asp title='¸ü¶àÐÂÎÅ¡¡'>¸ü¶à¡¡</a></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightcenterleft></td><td class=rightcentercenter valign='top' height=170>") call YC_news() YCMS("</TD></TR></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightfootleft ></td><td class=rightfootcenter></td></tr></table>") call br() YCMS("</td></tr></table></td><td class=right></td></tr></table>") 'µÚÒ»´ó±í¸ñ½áÊø 'µÚ¶þ´ó±í¸ñ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0' align='center' class='bgcolor'><tr><td class='left'></td><td class='width'>") YCMS("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'>") 'ͳ¼ÆÐÅÏ¢¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><td class='lefttopcenter'> ¡ù ͳ¼ÆÐÅÏ¢</td><td class='lefttopright'></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class='leftcentercenter' height=200>") YCMS("<table border='0' cellspacing='0' cellpadding='0' align='center' rules=rows frame=void width='100%' bordercolor="&border&"><tr><td height=19> <img src=img/title2.gif border='0'> нø»áÔ±£º<font color=red>") sql="select top 1 * from [YC_user] where pass=true order by id desc" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 YCMS(YC_Kill_Word(rs("user_name"),15)) rs.close set rs=nothing YCMS("</font></td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> »áÔ±×¢²á£º") call mytable("YC_user") YCMS(" ÈË</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> ÐÂÎŶ¯Ì¬£º") call mytable("YC_news") YCMS(" Ìõ</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> ÎÄÕÂ×÷Æ·£º") call mytable("YC_art") YCMS(" ƪ</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> ¾«Æ·Í¼Æ¬£º") call mytable("YC_pic") YCMS(" ÕÅ</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> ÓéÀÖÐÀÉÍ£º") call mytable("YC_dj") YCMS(" ¸ö</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> Èí¼þÏÂÔØ£º") call mytable("YC_down") YCMS(" ¸ö</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> ±¾Õ¾ÆµµÀ£º") call mytable("YC_other") YCMS(" ¸ö</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> ÓÑÇéÁ¬½Ó£º") call mytable("YC_link") YCMS(" ¸ö</td></tr>") YCMS("<tr><td height=19> <img src=img/title2.gif border='0' width=10 height=10> ·Ã¿ÍÁôÑÔ£º") call mytable("YC_book") YCMS(" Ìõ</td></tr></table>") YCMS("</td><td class=leftcenterright></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class='leftfootcenter'></td><td class='leftfootright'></td></tr></table>") call br() '»áÔ±ÅÅÐпªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><td class='lefttopcenter'> ¡ù »áÔ±ÅÅÐÐ</td><td class='lefttopright'></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' class='leftcentercenter' height=115 align='center'>") call br() call YC_user() call br() YCMS("</td><td class=leftcenterright></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class='leftfootcenter'></td><td class='leftfootright'></td></tr></table>") call br() YCMS("</td><td width='5'></td><td valign='top' align=right>") 'ͼƬ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=righttopleft></td><td class=righttopcenter> ¡ù ͼƬ×÷Æ·<span style='width=400px'></span><a href=pic.asptitle='¸ü¶àͼƬ¡¡'>¸ü¶à¡¡</a></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightcenterleft></td><td class=rightcentercenter valign='top'>") call YC_pic() YCMS("</TD></TR></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightfootleft></td><td class=rightfootcenter></td></tr></table>") call br() 'ÓéÀÖ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=righttopleft></td><td class=righttopcenter> ¡ù Ó°ÒôÓéÀÖ<span style='width=400px'></span><a href=dj.asp title='¸ü¶àÓ°ÒôÓéÀÖ¡¡'>¸ü¶à¡¡</a></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightcenterleft></td><td class=rightcentercenter valign='top' height=170>") call YC_dj() YCMS("</TD></TR></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightfootleft></td><td class=rightfootcenter></td></tr></table>") call br() YCMS("</td></tr></table></td><td class=right></td></tr></table>") '½»Á÷¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0' align='center' class='bgcolor'><tr><td class='left'></td><td class='width'>") YCMS("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><td class='lefttopcenter'> ¡ù ÔÚÏß½»Á÷</td><td class='lefttopright'></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' class='leftcentercenter' height=118 align='center'>") call br response.write qq_online call br YCMS("</td><td class=leftcenterright></td></tr></table>") 'µÚ¶þ´ó±í¸ñ½áÊø 'µÚÈý´ó±í¸ñ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class='leftfootcenter'></td><td class='leftfootright'></td></tr></table>") call br 'Á¬½Ó¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><td class='lefttopcenter'> ¡ù ÓÑÇéÁ¬½Ó<span style='width=50px'></span><a href=link.asp title='¸ü¶àÓÑÇéÁ¬½Ó¡¡'>¸ü¶à¡¡</a></td><td class='lefttopright'></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' class='leftcentercenter' height=222 align='center'>") YCMS("<DIV id=oRollV style='MARGIN:0px;OVERFLOW:hidden; HEIGHT: 195px'><DIV id=oRollV1>") call YC_link() YCMS("</DIV><DIV id=oRollV2></DIV></DIV>") call YC_link2() call br() YCMS("</td><td class=leftcenterright></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class='leftfootcenter'></td><td class='leftfootright'></td></tr></table>") call br() YCMS("<td width='5'></td><td valign='top' align=right>") 'ÎÄÕ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=righttopleft></td><td class=righttopcenter> ¡ù ÎÄÕÂ×÷Æ·<span style='width=400px'></span><a href=art.asp title='¸ü¶àÎÄÕ¡¡'>¸ü¶à¡¡</a></td></tr></table><table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightcenterleft></td><td class=rightcentercenter valign='top' height=170>") call YC_art() YCMS("</TD></TR></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightfootleft></td><td class=rightfootcenter></td></tr></table>") call br() 'ÏÂÔØ¿ªÊ¼ YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=righttopleft></td><td class=righttopcenter> ¡ù ÏÂÔØÖÐÐÄ<span style='width=400px'></span><a href=down.asp title='¸ü¶àÈí¼þÏÂÔØ¡¡'>¸ü¶à¡¡</a></td></tr></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightcenterleft></td><td class=rightcentercenter valign='top' height=170>") call YC_down() YCMS("</TD></TR></table>") YCMS("<table border='0' cellspacing='0' cellpadding='0'><tr><td class=rightfootleft></td><td class=rightfootcenter></td></tr></table>") call br() YCMS("</td></tr></table></td><td class=right></td></tr></table>") 'µÚÈý´ó±í¸ñ½áÊø YCMS("<SCRIPT>StartRollV();StartRollH();</SCRIPT>") call foot() %> 而且在DW中执行时提示:文档的当前编码不能正确保存文档内所有字符,可能需要改为UTF-8码或其他文档中的特殊字符的编码.请兄弟指教.谢谢! 我虽然知道页面是utf8,字符是gb32,不乱才怪,但不知道怎么改? |