が is the Unicode character HIRAGANA LETTER GA, code point U+304C (decimal 12364) in the Hiragana block, added in Unicode 1.1. In HTML write が, and in UTF-8 it is the 3 bytes E3 81 8C.
Codes
| Where | How to write it |
|---|---|
| Code point | U+304C |
| Decimal | 12364 |
| UTF-8 bytes | E3 81 8C |
| UTF-16 (big-endian) | 304C |
| UTF-32 | 0000304C |
| HTML decimal | が |
| HTML hex | が |
| CSS | \304C |
| JavaScript | \u304C |
| JSON | \u304C |
| Python | \u304C |
| Python by name | \N{HIRAGANA LETTER GA} |
| Java, C# | \u304C |
| Rust, Swift | \u{304C} |
| Go, C, C++ | \u304C |
| URL (percent-encoded) | %E3%81%8C |
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 | HIRAGANA LETTER GA |
| Code point | U+304C (decimal 12364) |
| Block | Hiragana (U+3040–U+309F) |
| General category | Lo: Other letter |
| Script | Hiragana |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
HIRAGANA LETTER GA is canonically equivalent to the sequence below. Normalising text to NFD splits it into these parts; NFC joins them back into U+304C. Search and comparison should normalise first, or the two spellings will not match.
Nearby in Hiragana
- い U+3044 Hiragana Letter I
- ぅ U+3045 Hiragana Letter Small U
- う U+3046 Hiragana Letter U
- ぇ U+3047 Hiragana Letter Small E
- え U+3048 Hiragana Letter E
- ぉ U+3049 Hiragana Letter Small O
- お U+304A Hiragana Letter O
- か U+304B Hiragana Letter Ka
- き U+304D Hiragana Letter Ki
- ぎ U+304E Hiragana Letter Gi
- く U+304F Hiragana Letter Ku
- ぐ U+3050 Hiragana Letter Gu
- け U+3051 Hiragana Letter Ke
- げ U+3052 Hiragana Letter Ge
- こ U+3053 Hiragana Letter Ko
- ご U+3054 Hiragana Letter Go
All 93 characters: Hiragana.
Official reference
Questions people ask
- What is the HTML code for が?
- Use が (decimal) or が (hex).
- What is the UTF-8 encoding of U+304C?
- E3 81 8C (hex), 3 bytes. In a URL it is %E3%81%8C.
- How do I write U+304C in JavaScript or Python?
- JavaScript: \u304C. Python: \u304C.
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