Four-Per-Em Space vs Fullwidth Digit Five
VS
การเปรียบเทียบคุณสมบัติ
| คุณสมบัติ | 2005 | 5 FF15 |
|---|---|---|
| ชื่อ | Four-Per-Em Space | Fullwidth Digit Five |
| หมวดหมู่ | Punctuation | Punctuation |
| บล็อก | General Punctuation | Halfwidth and Fullwidth Forms |
| สคริปต์ | Zyyy | Zyyy |
| หมวดหมู่ทั่วไป | Space Separator (Zs) | Decimal Number (Nd) |
| สองทิศทาง | WS | EN |
การเปรียบเทียบการเข้ารหัส
| รูปแบบ | 2005 | FF15 |
|---|---|---|
| Unicode | U+2005 | U+FF15 |
| HTML Decimal |   | 5 |
| HTML Hex |   | 5 |
| CSS | \2005 | \FF15 |
| JavaScript | \u{2005} | \u{FF15} |
| Python | \u2005 | \uff15 |
| UTF-8 | e2 80 85 | ef bc 95 |
วิธีแยกความแตกต่าง
Four-Per-Em Space และ Fullwidth Digit Five ทั้งคู่อยู่ในหมวดหมู่ Punctuation แต่อยู่ในบล็อก Unicode ที่ต่างกัน ตรวจสอบโค้ดพอยต์เพื่อแยกความแตกต่าง
เคล็ดลับ: วางอักขระในโปรแกรมแก้ไข hex หรือใช้
charCodeAt()
ใน JavaScript เพื่อตรวจสอบโค้ดพอยต์จริง