小编Zoo*_*oom的帖子

为什么字符串"\ u0022"以此字符串"\ u204D"开头

为什么在.net(Windows 8)下这个字符串比较返回true?

"\u0022".StartsWith("\u204D");
Run Code Online (Sandbox Code Playgroud)

在所有文化中都是如此,如果将StartsWith切换为Equals,则返回false.

对于StartsWith比较,有许多不同的字符返回true.这是奇怪的Unicode规则的一部分还是Windows在这里有自己的规则?

.net c# unicode string-comparison

5
推荐指数
1
解决办法
343
查看次数

标签 统计

.net ×1

c# ×1

string-comparison ×1

unicode ×1