网络编程
位置:首页>> 网络编程>> Asp编程>> JS通过FSO将unicode字符写入文本

JS通过FSO将unicode字符写入文本

  发布时间:2009-06-01 12:26:00 

标签:fso,unicode,编码

 

var fso = new ActiveXObject("Scripting.FileSystemObject");
var txt000 = fso.OpenTextFile(savePath, 8, true);
txt000.WriteLine(myText);
txt000.close();

我想fso不能写入unicode字符吧。应该用adodb.stream吧

事实上是可以的,把我上面代码里面改一行就OK了

var txt000 = fso.OpenTextFile(savePath, 8, true, true);

JScript FSO 只支持 unicode / ASCII 其他的要靠 adobe.stream

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com