鉴于下面的代码,test.xml将采用什么编码?
var filePath = @"C:\TEMP\test.xml";
using (var fileStream = new FileStream(filePath, FileMode.OpenOrCreate))
{
fileStream.SetLength(0);
var xmlSerializer = new XmlSerializer(typeof(string));
xmlSerializer.Serialize(fileStream, "HELLO WORLD");
}