【问题标题】:c# replace ՛ characters [closed]c#替换՛字符[关闭]
【发布时间】:2020-03-21 11:58:42
【问题描述】:

为什么我不能用空字符串替换 ARMENIAN EMPHASIS MARK?

Replace("՛", String.Empty)

其中 ՛ 是 unocode char U+055B http://unicode.org/cldr/utility/character.jsp?a=055b

【问题讨论】:

标签: c# replace unicode special-characters


【解决方案1】:

它的返回方法。

分配结果。

var names = new List<String>
{
    "Ana՛",
    "Felipe՛",
    "Emillia՛"
};

foreach (var name in names)
{
    var newName = name.Replace("՛",string.Empty);
    Console.WriteLine($"Hello {newName}");
}

【讨论】:

    猜你喜欢
    • 2021-12-16
    • 1970-01-01
    • 2012-06-18
    • 2014-07-13
    • 1970-01-01
    • 2015-01-20
    • 1970-01-01
    • 2013-03-08
    • 2013-04-14
    相关资源
    最近更新 更多