We are in the ASP environment, dynamic operation are used when students quiet operation is FSO, he is a component of special operations on the document, the encoding attribute he FSO only three, the default system, Unicode, ASCII, and we want to UTF-8, so the general Chinese system using the FSO component the files are in GB2312 format, even if you write in charset= UTF-8 is useless

生成UTF-8格式的文件,ASP环境,我们使用Adodb.流代替FSO读写UTF-8文件,因为ADODB。流有一个Charset属性,所以你可以定义或打开要写入的文件的编码类型,因此,数据流不仅可以阅读。或写UTF-8格式的文件,基本上。该文件可以运行,当然,当前我们要为UTF-8写文件格式更有用,

函数可以在函数的底部实现:

功能writetofile(FileURL,STR,字符集)
集STM = CreateObject(ADODB。流)
Stm,类型= 2
stm.mode = 3
stm.charset =字符集
开放的STM。
stm.writetext STR
stm.savetofile FileURL,2
stm.flush
STM。关闭
设置STM =无
端功能

字符集可以选择很多,你可以发现这是你想要的:英语Daquan CodePage CharSet编码的显示名称,这个功能基本上与你的FSO功能使用静态的学生差不多,但更多的是一种字符编码属性选择,当然,你也可以使用此属性直接写功能,但是最好是写,如果你想使用其他后转换成其他格式,这个功能也可以用,不会被修改。

如果你只是想把现有的文件为UTF-8格式,试试吧:
批GB2312 UTF-8,支持拖拽,vbs实现