Forum Discussion
rraghvani
2 years agoChampion Level 3
PowerShell
Actual encoding will convert to bytes
or using dotNet
- Henry12 years 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
- 5 years ago
- 3 years ago
- 2 years ago
- 4 years ago
Recent Discussions
- 22 hours ago
- 23 hours ago
- 5 days ago