1         [TestMethod]
2         public void TestBom()
3         {
4             string str = "123​";//这个字符串是错误的有问题 长度4
5             string newstr = new string(str.Where(x => x != 8203).Select(x => x).ToArray());
6             Assert.AreEqual("123", newstr);
7         }

8203是 200B的十进制 

 

相关文章:

  • 2022-12-23
  • 2021-05-05
  • 2021-06-07
  • 2022-12-23
  • 2021-11-19
  • 2021-09-13
  • 2021-04-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案