April 23rd, 2013, 02:06 AM
XML files encoding
I have a problem loading an xml file into C#. I found out that this file has no predefined encoding type. When I open the xml file in Notepad++ I can see the data from the file. However, when I click the "Encoding" menu button, I see that there is no encoding set to this file. If I manually set the encoding of the file to "UTF-8", for example, I don't have the problem loading the xml in C# anymore.
Is there any way in which I can set the encoding of the file through C#, without doing it manually ? Thank you in advance !
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!