I have a xml file that is saved in UTF-8 but the encoding inside the file shows it to be UTF-16.
So, I want to find out in which encoding the file is saved and if it is UTF-8 i want to convert it to utf-16. Is there a method to do this using C#.
I was wondering whether System.Text.Encoding would help me in this regard. I am new to C#, so a sample code would be helpful for me.
thanks in advance.