UTF-8 encoding alternative for scripting needed
Hello community.
I'm struggeling with finding an alternative to the UTF-8 encoding method provided by dotNET due to the fact that dotNET requires a licensed desktop module which is not available on all machines.
To give you an example:
The next line of code works well with dotNET.
utf8DecodedText := dotNET.System_Text.Encoding.UTF8.GetString(myArray).OleValue;
I tried to work around the license problem with OLE.
UTF8Encoding := Sys.OleObject('System.Text.UTF8Encoding');
utf8DecodedText := UTF8Encoding.GetString(myArray);
Unfortunatly just an error dialog pops up saying "wrong parameter".
I've already tried to explore the GetString method with the OLE/COM object viewer but unfortunatly the methods are not public in mscorlib.tlb
I've also googled on this topic without success.
Does anyone have an alternative suggestion for UTF-8 encoding?