I'm not sure if I'm doing something wrong, but I can't seem to run the following JScript through the Windows Script Host
if I save it in a .js
file with the UTF-8
encoding:
var name = "Hello world!";
WScript.echo(name);
When I run it, it gives me this error:
Note that the script runs fine if I save it with ANSI
encoding.
Is Windows Script Host
engine not compatible with the UTF-8
encoding?