.net micro (µ) greek letter uppercase issue

后端 未结 2 1489
时光说笑
时光说笑 2021-01-23 10:50

I have the following code:

 string firstMicro = \"aa \\u00b5 bb\";
 string secondMicro = \"aa \\u03bc bb\";

 Assert.IsFalse(firstMicro == secondMicro);

 string         


        
相关标签:
2条回答
  • 2021-01-23 11:14

    Some lowercase letters have the same uppercase equivalent. Sorry, but that's how Unicode is defined.

    For example, as you can see in the official UnicodeData.txt, both U+0069 (i) and U+0131 (ı) have U+0049 (I) for uppercase.

    What is the exact problem you're having? Maybe we can help.

    0 讨论(0)
  • 2021-01-23 11:22

    A microsecond is still a µSEC after upper-casing. Having it upcased to MSEC would fatally alter its meaning. Which is why there are two codepoints for the glyph.

    0 讨论(0)
提交回复
热议问题