Forum Discussion
rraghvani
Champion Level 3
3 years agoI use PowerShell https://stackoverflow.com/questions/23256911/encode-a-string-in-utf-8 as I also don't have dotNet.
Henry1
3 years agoContributor
I came across this suggestion already yesterday.
Unfortunatly this works correct in powershell itself. But if I call the powershell via WshShell.Exec within my script the UTF-8 encoding is gone because it seams that WshShell only can handle ascii in stdout.
Try this as a simple example:
oExec := WshShell.Exec('powershell -command echo ßäöü');
oExec.StdIn.Close;
strOutput := oExec.StdOut.ReadAll;
Log.Message(strOutput);