sjoshi <sj****@ingr.com> wrote:
There is no encoding specified in the declaration
That's the problem then. If no encoding is specified in the
declaration, it's assumed to be UTF-8, according to the XML
specification.
and the file was
saved on a XP english original machine with LocalSettings are set to
Russian. If I open the file in VSNet and then do a SaveAs with UTF-8
encoding, it works fine.
That brings me to another question, Is there a way to find the ecoding
of an XML file in .NET ?
Not sure - if you got the XmlDeclaration somehow, you could ask that -
but I don't know whether the encoding is filled in automatically if
it's not present.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too