In my PS script I have a string variable which is later used as a body of html email. I need to change encoding of the variable to UTF8 so that the text will be displayed correctly in the email. The variable is defined in the script, it's not read from any file. Can anybody help me to fix that?
The solution in Encode a string in UTF-8 didn't work for me.