The unicode text string shows correctly in the Studio messagebox.
However, the string is being converted to UTF-8 by the Invoke Code activity and unicode character is not showing correctly on the titlebar.
How can I tell the following C# Invoke-Code activity to use UTF-8BOM for titleBarText?
Ok, My application definitely DOES support Unicode characters in the titlebar text.
I did test this with a the Autohotkey application.
What I am seeking is System.Text.Encoding that will change my UTF8 string to Unicode.
The following link shows how to do this in a .Net project (my UiPath project is C# Windows) but I could not get this to work for me in Studio invoke code activity. UnicodeEncoding encodes Unicode characters using the UTF-16 encoding.
So I am still looking for a way to convert UTF8 to Unicode.
Alright. You mean you have UTF8WithBOM data as not byte array but String type, right?
In this case, first we need to convert it byte array properly, because String type is assumed encoding is unicode (UTF-16) and it might be corrupted as UTF8.
For now, can you check it using the following expression, for example?