Hi all !
I have this strange problem regarding running a VBScript in a .CMD file. The
problem does not exist if I run the script on the command line. Here is what
I do:
---------------------
Option Explicit
Dim WSHShell, Args, i, Strng
Set WSHShell = CreateObject("WScript.Shell")
Set Args = WScript.Arguments
For i = 0 to Args.Count - 1
WScript.StdOut.Write Args(i)
Next
WScript.Quit
---------------------
Then i run it with the following command: cscript /nologo /b rawout.vbs
"Søren" (as you can see I'm from Denmark).
The result is: Søren
But when I run it from a .CMD file the result is: S°ren
The problem seems to be with the characters æøå !
Does anyone know why ?. And how can I correct this ?
I run WinXP English version SP1
Thanks in advance ;-)
My regards
Søren