/u200B 8203 Zero-width space 问题

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的十进制 

 

posted @ 2016-03-16 17:04  沐松  阅读(682)  评论(0编辑  收藏  举报