| HTML Entity (dec) | 紫 |
| HTML Entity (hex) | 紫 |
| UTF-8 (hex) | 0xe7b4ab / 0xe7 0xb4 0xab (3 bytes) |
| UTF-8 (dec) | 231, 180, 171 (3 bytes) |
| UTF-16-BE (hex) | 0x7d2b / 0x7d 0x2b (2 bytes) |
| UTF-16-BE (dec) | 125, 43 (2 bytes) |
| UTF-32-BE (hex) | 0x7d2b / 0x00 0x00 0x7d 0x2b (4 bytes) |
| UTF-32-BE (dec) | 0, 0, 125, 43 (4 bytes) |
| C/C++/Java source code | "\u7d2b" |
| Python source code | "\u7d2b" |