Where can I get a list of Unicode chars by class?

后端 未结 5 1811
天命终不由人
天命终不由人 2020-12-13 17:43

I\'m new to learning Unicode, and not sure how much I have to learn based on my ASCII background, but I\'m reading the C# spec on rules for identifiers to determine what cha

5条回答
  •  囚心锁ツ
    2020-12-13 18:17

    You can retrieve this information in an automated fashion from the official Unicode data file, UnicodeData.txt, which is published here:

    • UnicodeData.txt (at unicode.org)

    This is a file with semicolon-separated values in each line. The third column tells you the character class of each character.

    The benefit of this is that you can get the character name for each character, so you have a better idea of what it is than by just looking at the character itself (e.g. would you know what ბ is? That’s right, it’s Ban. In Georgian. :-))

提交回复
热议问题