Hi @iqworks Information Quality Works
Try reading the file using Encoding.UTF8
explicitly to ensure that special characters are preserved:
string wdata = System.IO.File.ReadAllText(file, System.Text.Encoding.UTF8); System.IO.File.WriteAllText(wfile, wdata, System.Text.Encoding.UTF8);
I would recommend loading the file into a text editor like Notepad++ that tells you what the encoding of the file is (in the status bar). If it's not encoded in UTF-8 to start with, reading and writing as UTF-8 won't work.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Rena