javascript에서 UTF-8 파일 읽기
var fso = new ActiveXObject('Scripting.FileSystemObject');
var astream = new ActiveXObject('ADODB.Stream');
astream.Open();
astream.Charset = 'UTF-8';
astream.LoadFromFile('test.txt');
var text = astream.ReadText();
astream.Close();
WScript.Echo(text);
var astream = new ActiveXObject('ADODB.Stream');
astream.Open();
astream.Charset = 'UTF-8';
astream.LoadFromFile('test.txt');
var text = astream.ReadText();
astream.Close();
WScript.Echo(text);
No comments:
Post a Comment