I need to generate a text file from my workbook. The text file should be in Unicode to preserve exotic characters, and should also follow UTF-8 encoding.
Below is the code that I am using. however, the generated text file is always encoded in UCS-2 LE BOM.
ActiveWorkbook.WebOptions.Encoding = msoEncodingUTF8
ActiveWorkbook.SaveAs Filename:="C:\Users\User1\Desktop\testunicode.txt", _
FileFormat:=xlUnicodeText, CreateBackup:=False