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

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

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

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

       3、点击保存按钮的小三角选择编码保存:[Irving]WPF Invalid character in the given encoding. Line xx, position xx.' XML is not valid.

 

     4、编码选择UTF-8然后保存即可:[Irving]WPF Invalid character in the given encoding. Line xx, position xx.' XML is not valid.

备忘……

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-02-07
  • 2021-09-01
猜你喜欢
  • 2021-07-07
  • 2021-08-02
  • 2021-11-02
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案