Forum Discussion
rraghvani
Champion Level 3
PowerShell
Actual encoding will convert to bytes
or using dotNet
Henry1
12 months agoContributor
Thank you for confirming that unicode characters works well in PowerShell itself. It does not work by calling the PowerShell via WshShell within TC due to the fact that WshShell only can handle ascii in stdout.
Back to my initial question: I already have an array and I want to pass it somehow to an alternative function that returns me a utf-8 decoded string.
As mentioned above it works well with dotNET with this line of code:
utf8DecodedText := dotNET.System_Text.Encoding.UTF8.GetString(myArray).OleValue;
Log.Message(utf8DecodedText);
BTW. Log.Message can handle unicode characters.
Related Content
- 2 years ago
- 5 years ago
- 2 years ago
- 2 years ago