My source XML has the copyright character in it as ©
. When writing the XML with this code:
var stringWriter = new StringWriter();
segmentDoc.Save(stringWriter);
Console.WriteLine(stringWriter.ToString());
it is rendering that copyright character as a little "c" with a circle around it. I'd like to preserve the original code so it gets spit back out as ©
. How can I do this?
Update: I also noticed that the source declaration looks like <?xml version="1.0" encoding="utf-8"?>
but my saved output looks like <?xml version="1.0" encoding="utf-16"?>
. Can I indicate that I want the output to still be utf-8? Would that fix it?
Update2: Also,  
is getting output as ÿ
. I definitely don't want that happening!
Update3: §
is becoming a little box and that is wrong, too. It should be §