خ is the Unicode character ARABIC LETTER KHAH, code point U+062E (decimal 1582) in the Arabic block, added in Unicode 1.1. In HTML write خ, and in UTF-8 it is the 2 bytes D8 AE.
Codes
| Where | How to write it |
|---|---|
| Code point | U+062E |
| Decimal | 1582 |
| UTF-8 bytes | D8 AE |
| UTF-16 (big-endian) | 062E |
| UTF-32 | 0000062E |
| HTML decimal | خ |
| HTML hex | خ |
| CSS | \62E |
| JavaScript | \u062E |
| JSON | \u062E |
| Python | \u062E |
| Python by name | \N{ARABIC LETTER KHAH} |
| Java, C# | \u062E |
| Rust, Swift | \u{62E} |
| Go, C, C++ | \u062E |
| URL (percent-encoded) | %D8%AE |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | ARABIC LETTER KHAH |
| Code point | U+062E (decimal 1582) |
| Block | Arabic (U+0600–U+06FF) |
| General category | Lo: Other letter |
| Script | Arabic |
| Bidirectional class | AL: Right-to-left (Arabic) |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Arabic
- ئ U+0626 Arabic Letter Yeh With Hamza Above
- ا U+0627 Arabic Letter Alef
- ب U+0628 Arabic Letter Beh
- ة U+0629 Arabic Letter Teh Marbuta
- ت U+062A Arabic Letter Teh
- ث U+062B Arabic Letter Theh
- ج U+062C Arabic Letter Jeem
- ح U+062D Arabic Letter Hah
- د U+062F Arabic Letter Dal
- ذ U+0630 Arabic Letter Thal
- ر U+0631 Arabic Letter Reh
- ز U+0632 Arabic Letter Zain
- س U+0633 Arabic Letter Seen
- ش U+0634 Arabic Letter Sheen
- ص U+0635 Arabic Letter Sad
- ض U+0636 Arabic Letter Dad
All 256 characters: Arabic.
Official reference
Questions people ask
- What is the HTML code for خ?
- Use خ (decimal) or خ (hex).
- What is the UTF-8 encoding of U+062E?
- D8 AE (hex), 2 bytes. In a URL it is %D8%AE.
- How do I write U+062E in JavaScript or Python?
- JavaScript: \u062E. Python: \u062E.
Source
Unicode Character Database 18.0.0 (Unicode License v3); HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in