I\'m using C# to output an xml file and Im trying to set the xml encoding value to UTF-8 but its currently outputting:
<
Just use the output file name for the XmlWriter instead of the StringWriterWithEncoding:
var settings = new XmlWriterSettings { Encoding = Encoding.UTF8, Indent = true }; using (var writer = XmlWriter.Create(filePathName, settings)) { ...