-3
我收到運行時錯誤。請幫忙!添加編碼聲明
XmlDocument doc = new XmlDocument();
XmlDeclaration decNode = doc.CreateXmlDeclaration("1.0", ENCODING, string.Empty);
XmlAttribute encodeAttr = doc.CreateAttribute("encoding");
encodeAttr.InnerText = "utf-8";
decNode.Attributes.Append(encodeAttr);
doc.AppendChild(decNode);
doc.AppendChild(decNode);
什麼是你得到的錯誤? – PoweredByOrange
什麼是編碼? – Ehsan