I know google is full of this, but I couldn't make it work after hours of trying.
So here's foo.xml:
<Root>
<Child>a</Child>
</Root>
XDocument.Load("foo.xml") works great.
Here is bar.xml:
<Root>
<Child>á</Child>
</Root>
XDocument.Load("bar.xml") throws a System.Xml.XmlException:
{"Invalid character in the given encoding. Line 2, position 9."}
How should I progress?