用ADODB.STREAM生成UTF-8编码的HTML时能不能去除BOM
1个回答
展开全部
if read<> "" then
set stm=server.CreateObject(“adodb.stream”)
stm.Type=2
stm.mode=3
stm.charset="UTF-8" '以UTF-8编码写入
stm.open
stm.WriteText read
stm.SaveToFile server.MapPath("../index.html"),2
stm.flush
stm.Close
set stm=nothing
Response.Write("<script>alert('已经成功生成首页!')</script>")
end if
set stm=server.CreateObject(“adodb.stream”)
stm.Type=2
stm.mode=3
stm.charset="UTF-8" '以UTF-8编码写入
stm.open
stm.WriteText read
stm.SaveToFile server.MapPath("../index.html"),2
stm.flush
stm.Close
set stm=nothing
Response.Write("<script>alert('已经成功生成首页!')</script>")
end if
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询