Forum Discussion
rraghvani
12 months agoChampion Level 3
I use PowerShell https://stackoverflow.com/questions/23256911/encode-a-string-in-utf-8 as I also don't have dotNet.
- Henry112 months 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);
Related Content
- 2 years ago
- 5 years ago
- 2 years ago
- 2 years ago