[Irving]WPF Invalid character in the given encoding. Line xx, position xx.' XML is not valid.

mac2022-06-30  24

WPF开发中发现Xaml界面中突然抽风似的提示错误 Invalid character in the given encoding. Line xx, position xx.' XML is not valid.

各种查资料,发现原因是存在中文字符。

解决办法:1、选择错误页面

     2、点击菜单-文件->另存为

       3、点击保存按钮的小三角选择编码保存:

 

     4、编码选择UTF-8然后保存即可:

备忘……

转载于:https://www.cnblogs.com/teamate/p/3737503.html

相关资源:change_xml_dafult_folder.py
最新回复(0)