Get Unicode Name
This method is usually applied when a character can't be further normalized by Unicode core Norm algorithm, which is under following cases:
![ and ]! are the starting tag and ending tag, respectively. These two tags are configurable by users. Please note that this method can be used independently for other purposes, such as to verify the name and value of a Unicode character.
Char | Unicode | Unicode Name |
---|---|---|
© | U+00a9 | ![COPYRIGHT SIGN]! |
® | U+00AE | ![REGISTERED SIGN]! |
µ | U+00B5 | ![MICRO SIGN]! |
¶ | U+00B6 | ![PILCROW SIGN]! |
ß | U+00DF | ![LATIN SMALL LETTER SHARP S]! |
β | U+03B2 | ![GREEK SMALL LETTER BETA]! |
μ | U+03BC | ![GREEK SMALL LETTER MU]! |
π | U+03C0 | ![GREEK SMALL LETTER PI]! |
℠ | U+2120 | ![SERVICE MARK]! |
℡ | U+2121 | ![TELEPHONE SIGN]! |
™ | U+2122 | ![TRADE MARK SIGN]! |
ﺂ | U+FE82 | ![ARABIC LETTER ALEF WITH MADDA ABOVE FINAL FORM]! |
- import com.ibm.icu.lang.*;
- If the charcter is ASCII
- return the original chracter
- else
- String unicodeName = UCharacter.getName(inChar);
- Send result as ![unicodeName]!