ग is the Unicode character DEVANAGARI LETTER GA, code point U+0917 (decimal 2327) in the Devanagari block, added in Unicode 1.1. In HTML write ग, and in UTF-8 it is the 3 bytes E0 A4 97.
Codes
| Where | How to write it |
|---|---|
| Code point | U+0917 |
| Decimal | 2327 |
| UTF-8 bytes | E0 A4 97 |
| UTF-16 (big-endian) | 0917 |
| UTF-32 | 00000917 |
| HTML decimal | ग |
| HTML hex | ग |
| CSS | \917 |
| JavaScript | \u0917 |
| JSON | \u0917 |
| Python | \u0917 |
| Python by name | \N{DEVANAGARI LETTER GA} |
| Java, C# | \u0917 |
| Rust, Swift | \u{917} |
| Go, C, C++ | \u0917 |
| URL (percent-encoded) | %E0%A4%97 |
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 | DEVANAGARI LETTER GA |
| Code point | U+0917 (decimal 2327) |
| Block | Devanagari (U+0900–U+097F) |
| General category | Lo: Other letter |
| Script | Devanagari |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Devanagari
- ए U+090F Devanagari Letter E
- ऐ U+0910 Devanagari Letter Ai
- ऑ U+0911 Devanagari Letter Candra O
- ऒ U+0912 Devanagari Letter Short O
- ओ U+0913 Devanagari Letter O
- औ U+0914 Devanagari Letter Au
- क U+0915 Devanagari Letter Ka
- ख U+0916 Devanagari Letter Kha
- घ U+0918 Devanagari Letter Gha
- ङ U+0919 Devanagari Letter Nga
- च U+091A Devanagari Letter Ca
- छ U+091B Devanagari Letter Cha
- ज U+091C Devanagari Letter Ja
- झ U+091D Devanagari Letter Jha
- ञ U+091E Devanagari Letter Nya
- ट U+091F Devanagari Letter Tta
All 128 characters: Devanagari.
Official reference
Questions people ask
- What is the HTML code for ग?
- Use ग (decimal) or ग (hex).
- What is the UTF-8 encoding of U+0917?
- E0 A4 97 (hex), 3 bytes. In a URL it is %E0%A4%97.
- How do I write U+0917 in JavaScript or Python?
- JavaScript: \u0917. Python: \u0917.
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