ā is the Unicode character LATIN SMALL LETTER A WITH MACRON, code point U+0101 (decimal 257) in the Latin Extended-A block, added in Unicode 1.1. In HTML write ā, and in UTF-8 it is the 2 bytes C4 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+0101 |
| Decimal | 257 |
| UTF-8 bytes | C4 81 |
| UTF-16 (big-endian) | 0101 |
| UTF-32 | 00000101 |
| HTML decimal | ā |
| HTML hex | ā |
| HTML named | ā |
| CSS | \101 |
| JavaScript | \u0101 |
| JSON | \u0101 |
| Python | \u0101 |
| Python by name | \N{LATIN SMALL LETTER A WITH MACRON} |
| Java, C# | \u0101 |
| Rust, Swift | \u{101} |
| Go, C, C++ | \u0101 |
| URL (percent-encoded) | %C4%81 |
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 | LATIN SMALL LETTER A WITH MACRON |
| Code point | U+0101 (decimal 257) |
| Block | Latin Extended-A (U+0100–U+017F) |
| General category | Ll: Lowercase letter |
| Script | Latin |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
LATIN SMALL LETTER A WITH MACRON is canonically equivalent to the sequence below. Normalising text to NFD splits it into these parts; NFC joins them back into U+0101. Search and comparison should normalise first, or the two spellings will not match.
Upper and lower case
- Ā U+0100 Latin Capital Letter A With Macron — Uppercase
Nearby in Latin Extended-A
- Ā U+0100 Latin Capital Letter A With Macron
- Ă U+0102 Latin Capital Letter A With Breve
- ă U+0103 Latin Small Letter A With Breve
- Ą U+0104 Latin Capital Letter A With Ogonek
- ą U+0105 Latin Small Letter A With Ogonek
- Ć U+0106 Latin Capital Letter C With Acute
- ć U+0107 Latin Small Letter C With Acute
- Ĉ U+0108 Latin Capital Letter C With Circumflex
- ĉ U+0109 Latin Small Letter C With Circumflex
All 128 characters: Latin Extended-A.
Official reference
Questions people ask
- What is the HTML code for ā?
- Use the named entity ā, or ā (decimal) or ā (hex).
- What is the UTF-8 encoding of U+0101?
- C4 81 (hex), 2 bytes. In a URL it is %C4%81.
- How do I write U+0101 in JavaScript or Python?
- JavaScript: \u0101. Python: \u0101.
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