Degree Sign vs Diamond Operator
VS
Comparaison des propriétés
| Propriété | ° 00B0 | ⋄ 22C4 |
|---|---|---|
| Nom | Degree Sign | Diamond Operator |
| Catégorie | Math Symbols | Math Symbols |
| Bloc | Latin-1 Supplement | Mathematical Operators |
| Écriture | Zyyy | Zyyy |
| Catégorie générale | Other Symbol (So) | Math Symbol (Sm) |
| Bidirectionnel | ET | ON |
Comparaison d'encodages
| Format | 00B0 | 22C4 |
|---|---|---|
| Unicode | U+00B0 | U+22C4 |
| HTML Decimal | ° | ⋄ |
| HTML Hex | ° | ⋄ |
| CSS | \00B0 | \22C4 |
| JavaScript | \u{B0} | \u{22C4} |
| Python | \u00b0 | \u22c4 |
| UTF-8 | c2 b0 | e2 8b 84 |
Comment les distinguer
Degree Sign et Diamond Operator sont tous deux dans la catégorie Math Symbols mais résident dans des blocs Unicode différents. Vérifiez le point de code pour les distinguer.
Conseil : Collez le caractère dans un éditeur hexadécimal ou utilisez
charCodeAt()
en JavaScript pour vérifier le point de code réel.