Unicode class names in C# - why do some work, when others don't?

两盒软妹~` 提交于 2019-12-30 18:20:33

问题


I'm wondering why this is. I have two unicode characters from the same group Ll, which is allowed according to the specs: http://msdn.microsoft.com/en-us/library/aa664670%28VS.71%29.aspx

One of them works, the other gives a compile error, and I can't find any documentation on why this is:

This works:

U+0467 CYRILLIC SMALL LETTER LITTLE YUS ѧ

This don't:

U+04FF CYRILLIC SMALL LETTER HA WITH STROKE ӿ

Can you help me find the pattern?


回答1:


U+0467 is from Unicode 1.1, whereas U+04FF is from Unicode 5.0. The page you refer to mentions Unicode 3.0. So the compiler's Unicode databases are just not new enough.



来源:https://stackoverflow.com/questions/3370546/unicode-class-names-in-c-sharp-why-do-some-work-when-others-dont

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!