My Android advanced tour ------) Unicode code values of some special characters in android, such as Arrow symbols such as character → character
In projects, some symbols are sometimes added to some controls (such as Button and TextView), as shown in:
In this case, images can be displayed, but these can be directly displayed using Unicode codes.
The code for the four icons is as follows:
The code for crown and music icons is as follows:
The preceding string values are:
\u265A
\u266B
\u2190
\u2191
\u2193
\u2192
========================================================== ========================================================== ================================
Find some Unicode code values for special symbols on the Internet and record them for future use, as shown below:
Use Unicode to represent symbols in string. xml of Android, use the following Unicode values related to JS.
? Arrow
Symbol |
UNICODE |
Symbol |
UNICODE |
HTML |
JS |
CSS |
HTML |
JS |
CSS |
? |
& #8672 |
\ U21E0 |
\ 21E0 |
? |
& #8674 |
\ U21E2 |
\ 21E2 |
? |
& #8673 |
\ U21E1 |
\ 21E1 |
? |
& #8675 |
\ U21E3 |
\ 21E3 |
? |
& #8606 |
\ U219E |
\ 219E |
? |
& #8608 |
\ U21A0 |
\ 21A0 |
? |
& #8607 |
\ U219F |
\ 219F |
? |
& #8609 |
\ U21A1 |
\ 21A1 |
Bytes |
& #8592 |
\ U2190 |
/2190 |
→ |
& #8594 |
\ U2192 |
/2192 |
Bytes |
& #8593 |
\ U2191 |
/2191 |
Bytes |
& #8595 |
\ U2193 |
/2193 |
? |
& #8596 |
\ U2194 |
/2194 |
? |
& #8597 |
\ U2195 |
/2195 |
? |
& #8644 |
\ U21C4 |
\ 21C4 |
? |
& #8645 |
\ U21C5 |
\ 21C5 |
? |
& #8610 |
\ U21A2 |
\ 21A2 |
? |
& #8611 |
\ U21A3 |
\ 21A3 |
? |
& #8670 |
\ U21DE |
\ 21DE |
? |
& #8671 |
\ U21DF |
\ 21DF |
? |
& #8619 |
\ U21AB |
\ 21AB |
? |
& #8620 |
\ U21AC |
\ 21AC |
? |
& #8668 |
\ U21DC |
\ 21DC |
? |
& #8669 |
\ U21DD |
\ 21DD |
? |
& #8602 |
\ U219A |
\ 219A |
? |
& #8603 |
\ U219B |
\ 219B |
? |
& #8622 |
\ U21AE |
\ 21AE |
? |
& #8621 |
\ U21AD |
\ 21AD |
? |
& #8678 |
\ U21E6 |
\ 21E6 |
? |
& #8680 |
\ U21E8 |
\ 21E8 |
? |
& #8679 |
\ U21E7 |
\ 21E7 |
? |
& #8681 |
\ U21E9 |
\ 21E9 |
▲ |
& #9650 |
\ U25B2 |
\ 25B2 |
? |
& #9658 |
\ U25BA |
\ 25BA |
Bytes |
& #9660 |
\ U25BC |
\ 25BC |
? |
& #9668 |
\ U25C4 |
\ 25C4 |
? |
& #10132 |
\ U2794 |
/2794 |
? |
& #10137 |
\ U2799 |
/2799 |
? |
& #10152 |
\ U27A8 |
\ 27A8 |
? |
& #10162 |
\ U27B2 |
\ 27B2 |
? |
& #10140 |
\ U279C |
\ 279C |
? |
& #10142 |
\ U279E |
\ 279E |
? |
& #10143 |
\ U279F |
\ 279F |
? |
& #10144 |
\ U27A0 |
\ 27A0 |
? |
& #10148 |
\ U27A4 |
\ 27A4 |
? |
& #10149 |
\ U27A5 |
\ 27A5 |
? |
& #10150 |
\ U27A6 |
\ 27A6 |
? |
& #10151 |
\ U27A7 |
\ 27A7 |
? |
& #10165 |
\ U27B5 |
\ 27B5 |
? |
& #10168 |
\ U27B8 |
\ 27B8 |
? |
& #10172 |
\ U27BC |
\ 27BC |
? |
& #10173 |
\ U27BD |
\ 27BD |
? |
& #10170 |
\ U27BA |
\ 27BA |
? |
& #10163 |
\ U27B3 |
\ 27B3 |
? |
& #8631 |
\ U21B7 |
\ 21B7 |
? |
& #8630 |
\ U21B6 |
\ 21B6 |
? |
& #8635 |
\ U21BB |
\ 21BB |
? |
& #8634 |
\ U21BA |
\ 21BA |
? |
& #8629 |
\ U21B5 |
\ 21B5 |
? |
& #8623 |
\ U21AF |
\ 21AF |
? |
& #10174 |
\ U27BE |
\ 27BE |
|
|
|
|
? Basic shape
Symbol |
UNICODE |
Symbol |
UNICODE |
HTML |
JS |
CSS |
HTML |
JS |
CSS |
? |
& #10084 |
\ U2764 |
/2764 |
? |
& #9992 |
\ U2708 |
/2708 |
★ |
& #9733 |
\ U2605 |
/2605 |
? |
& #10022 |
\ U2726 |
/2726 |
? |
& #9728 |
\ U2600 |
/2600 |
◆ |
& #9670 |
\ U25C6 |
\ 25C6 |
? |
& #9672 |
\ U25C8 |
\ 25C8 |
? |
& #9635 |
\ U25A3 |
\ 25A3 |
? |
& #9787 |
\ U263B |
\ 263B |
? |
& #9786 |
\ U263A |
\ 263A |
? |
& #9785 |
\ U2639 |
/2639 |
? |
& #9993 |
\ U2709 |
/2709 |
? |
& #9742 |
\ U260E |
\ 260E |
? |
& #9743 |
\ U260F |
\ 260F |
? |
& #9990 |
\ U2706 |
/2706 |
? |
& #65533 |
\ UFFFD |
\ FFFD |
? |
& #9729 |
\ U2601 |
/2601 |
? |
& #9730 |
\ U2602 |
/2602 |
? |
& #10052 |
\ U2744 |
/2744 |
? |
& #9731 |
\ U2603 |
/2603 |
? |
& #10056 |
\ U2748 |
/2748 |
? |
& #10047 |
\ U273F |
\ 273F |
? |
& #10048 |
\ U2740 |
/2740 |
? |
& #10049 |
\ U2741 |
/2741 |
? |
& #9752 |
\ U2618 |
/2618 |
? |
& #10086 |
\ U2766 |
/2766 |
? |
& #9749 |
\ U9749 |
/9749 |
? |
& #10050 |
\ U2742 |
/2742 |
? |
& #9765 |
\ U2625 |
/2625 |
? |
& #9774 |
\ U262E |
\ 262E |
? |
& #9775 |
\ U262F |
\ 262F |
? |
& #9770 |
\ U262A |
\ 262A |
? |
& #9764 |
\ U2624 |
/2624 |
? |
& #9988 |
\ U2704 |
/2704 |
? |
& #9986 |
\ U2702 |
/2702 |
? |
& #9784 |
\ U2638 |
/2638 |
? |
& #9875 |
\ U2693 |
/2693 |
? |
& #9763 |
\ U2623 |
/2623 |
? |
& #9888 |
\ U26A0 |
\ 26A0 |
? |
& #9889 |
\ U26A1 |
\ 26A1 |
? |
& #9762 |
\ U2622 |
/2622 |
? |
& #9851 |
\ U267B |
\ 267B |
? |
& #9855 |
\ U267F |
\ 267F |
? |
& #9760 |
\ U2620 |
/2620 |
$ Currency
Symbol |
UNICODE |
Symbol |
UNICODE |
HTML |
JS |
CSS |
HTML |
JS |
CSS |
$ |
& #36 |
\ U0024 |
/0024 |
Bytes |
& #162 |
\ U00A2 |
\ 00A2 |
Bytes |
& #163 |
\ U00A3 |
\ 00A3 |
Bytes |
& #164 |
\ U00A4 |
\ 00A4 |
|