When I serialize to a memory object specifying UTF-8 encoding, the result contains 3 leading garbage characters - code: 239 , 187, & 191. If I specify ASCII encoding, the serialization is correct. The code used is:
XmlTextWriter xmlTextWriter = new XmlTextWriter(m emoryStream, Encoding.UTF8);
xs.Serialize( xmlTextWriter, "a String");
What are the 3 leading characters ?? A Bug or just something I don't...