|
System.IO.StreamWriter sw = new System.IO.StreamWriter(Server.MapPath("bb.xml"), false, System.Text.Encoding.Default);
doc.Save(sw);
After rewriting in this way, the Chinese garbled problem was indeed solved, but it was automatically loaded at the generated file header
<?xml version="1.0" encoding="utf-8"?>, this sentence can’t let it come out, once it comes out, it’s wrong |
|