我有一个音乐程序,我把它改成UTF-8编码方式,但是生成分类的时候他生成ANSI的形式,下面是代码
如何改才能生成UTF-8
<!--#include file="const.asp"-->
<!--#include file="error.ini"-->
<link href="Images/Admin_Style.Css" rel="stylesheet" type="text/css">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>生成歌曲排行</title>
</head>
<body>
<%
dim Ds,SkyIdStr,SkyIdEnd,SkyIdNow
Ds=timer()
SkyIdStr=clng(request("SkyIdStr"))
SkyIdEnd=clng(request("SkyIdEnd"))
SkyIdNow=request("SkyIdNow")
if request("type")="all" then
if skyidstr<1 or skyidend<1 or SkyIdStr>=SkyIdEnd then
'response.write "开始和结束ID不能为空,且结束ID必须大于开始ID"
response.write "<script language=vbscript>"& vbcrlf
response.write "aaa=msgbox(""开始和结束ID不能为空,且结束ID必须大于开始ID"",vbOKOnly)"& vbcrlf
response.write "</script>"
else
makeskysoft="yes"
end if
end if
if makeskysoft="yes" then
response.write"<b><font color=""#FF0000"">正在生成歌曲排行,请稍等......</font></b><BR><span id=showImport></span><IE:Download ID=""oDownload"" STYLE=""behavior:url(#default#download)"" />"
if request("p")<>"" then
p=cint(request("p"))
D=request("D")
else
p=1
D=Ds
end if
MaxPerPage=10
'mpage=3 '得到总页数
allshu=SkyIdEnd-SkyIdStr '得到总数
SkyIDNowPage=p*MaxPerPage+SkyIdStr
if SkyIDNowPage=>allshu+SkyIdStr then SkyIDNowPage=allshu+SkyIdStr
for id=(p-1)*MaxPerPage+SkyIdStr to SkyIDNowPage
i=i+1
call MakeHtml()
if i>=MaxPerPage then exit for
next
Sshu=MaxPerPage*p-MaxPerPage+SkyIdStr
Tshu=Sshu+i-1
if allshu+SkyIdStr<Sshu then
response.redirect "Make_topall.asp?type=ok&SkyIdStr="&request("SkyIdStr")&"&SkyIdEnd="&request("SkyIdEnd")&"&shu="&request("shu")&"&D="&d&"&p="&p+1&""
response.end
else
response.write"<meta http-equiv=""refresh"" content=""0;url='Make_topall.asp?type="&request("type")&"&SkyIdStr="&request("SkyIdStr")&"&SkyIdEnd="&request("SkyIdEnd")&"&shu="&Tshu&"&D="&D&"&p="&p+1&"'"">"
response.write"<B><BR>您选择的是从<font color=ff0000>"&request("SkyIdStr")&"</font>到<font color=ff0000>"&request("SkyIdEnd")&"</font>个,共<font color=ff0000>"&allshu&"</font>个页面"
response.write"<br>正在生成:第"&Sshu&"-"&Tshu&"个"
response.write"<br>已耗时"&FormatNumber((timer()-request("D")),2)&"秒</B>"
end if
Sub MakeHtml()
response.write"<script>function onDownloadDone(downDate){showImport.innerHTML=downDate}oDownload.startDownload('Make_top.asp?id="&id&"',onDownloadDone)</script>"
end Sub
else
'shu=50
response.write"<b>批量生成歌曲排行"
if request("type")="ok" then
response.write"<br><br>操作成功:共生成<font color=""#FF0000"">"&request("SkyIdEnd")-request("SkyIdStr")&"</font>个页面<BR>总耗时<font color=""#FF0000"">"&FormatNumber((timer()-request("D")),2)&"</font>秒,完成时间在"&Now()&""
end if
response.write"<form name=pid method=""post"" action=""Make_topall.asp?type=all"">超始ID:<input size=8 name=""SkyIDStr"" value='1'> 终止ID:<input size=8 name=""SkyIDEnd"" value='12'><input name=""change"" class=""buttonface"" value=""确认"" type=""submit""></form>"
end if%>
</body>
</html>