首页 > 其他 > 详细

保存xml报错 'UTF_8' is not a supported encoding name

时间:2019-02-01 16:17:27      阅读:213      评论:0      收藏:0      [点我收藏+]
ArgumentException: ‘UTF_8‘ is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
var doc=new XmlDocument();
XmlDeclaration declaration = doc.CreateXmlDeclaration("1.0","UTF_8",null);//unity 2018.3.0f2 改为 UTF-8
doc.AppendChild(declaration);

保存xml报错 'UTF_8' is not a supported encoding name

原文:https://www.cnblogs.com/kingBook/p/10346157.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!