Data can be stored in UTF-8 format when working with the WSTRING type in the IEC code.
By using the ConvertUTF16toUTF8 function from the StringUtiIs library, the text is converted to UTF-8 format and can be saved to a file.