Hi
I have a text file in Unicode format and i want to change it into ANSI.
Give me some ideas.
Thanks
Darma
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted May 22, 2012, 10:43 AM
Try changing the second line to:
File.WriteAllText(filePath, text, Encoding.Default);
which should give you a file encoded with the current ANSI code page.
darma tejaPosted May 22, 2012, 10:37 AM
Thanks for the fast reply!!!
I wanted to change it to ANSI not ASCII.
Darma
VulpesPosted May 22, 2012, 10:20 AM