If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

XML files encoding

Hi !

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 !