XmlTextReader myXmlReader = new XmlTextReader(args[0]);
string en = myXmlReader.Encoding.EncodingName;
//Console.WriteLine(x);
Error:
Unhandled Exception: System.NullReferenceException: Object
reference not set to
an instance of an object.
HOW CAN I GET THE ENCODING NAME ? Basically determine the
encoding type.
Also How can I "set" an application wide Encoding ? I want
all modules and everything to stick to and conform to UTF-
8.
But somehow some methods automatically go to UTF-16