当前位置: 移动技术网 > IT编程>开发语言>.net > 用ASP生成静态UTF-8文件(代码)

用ASP生成静态UTF-8文件(代码)

2019年01月17日  | 移动技术网IT编程  | 我要评论

音速三兄妹,2013年最新交通法规,修仙从大唐开始

<%@ codepage=65001 %>
<% option explicit %>
<% response.charset="utf-8" %>
<% response.buffer=true %>
<%
dim strfullname,strcontent,strcharset,objstream
strfullname="d:logadmin3.asp"
strcontent="test"
strcharset="utf-8"
on error resume next

set objstream = server.createobject("adodb.stream")
 with objstream
 .type = 2
 .mode = 3
 .open
 .charset = strcharset
 .position = objstream.size
 .writetext = strcontent
 .savetofile strfullname,2
 .close
 end with
 set objstream = nothing

%>

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网