¿ is the Unicode character INVERTED QUESTION MARK, code point U+00BF (decimal 191) in the Latin-1 Supplement block, added in Unicode 1.1. In HTML write ¿, and in UTF-8 it is the 2 bytes C2 BF.
Codes
| Where | How to write it |
|---|---|
| Code point | U+00BF |
| Decimal | 191 |
| UTF-8 bytes | C2 BF |
| UTF-16 (big-endian) | 00BF |
| UTF-32 | 000000BF |
| HTML decimal | ¿ |
| HTML hex | ¿ |
| HTML named | ¿ |
| CSS | \BF |
| JavaScript | \u00BF |
| JSON | \u00BF |
| Python | \u00BF |
| Python by name | \N{INVERTED QUESTION MARK} |
| Java, C# | \u00BF |
| Rust, Swift | \u{BF} |
| Go, C, C++ | \u00BF |
| URL (percent-encoded) | %C2%BF |
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 | INVERTED QUESTION MARK |
| Code point | U+00BF (decimal 191) |
| Block | Latin-1 Supplement (U+0080–U+00FF) |
| General category | Po: Other punctuation |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Latin-1 Supplement
- · U+00B7 Middle Dot
- ¸ U+00B8 Cedilla
- ¹ U+00B9 Superscript One
- º U+00BA Masculine Ordinal Indicator
- » U+00BB Right-Pointing Double Angle Quotation Mark
- ¼ U+00BC Vulgar Fraction One Quarter
- ½ U+00BD Vulgar Fraction One Half
- ¾ U+00BE Vulgar Fraction Three Quarters
- À U+00C0 Latin Capital Letter A With Grave
- Á U+00C1 Latin Capital Letter A With Acute
- Â U+00C2 Latin Capital Letter A With Circumflex
- Ã U+00C3 Latin Capital Letter A With Tilde
- Ä U+00C4 Latin Capital Letter A With Diaeresis
- Å U+00C5 Latin Capital Letter A With Ring Above
- Æ U+00C6 Latin Capital Letter Ae
- Ç U+00C7 Latin Capital Letter C With Cedilla
All 128 characters: Latin-1 Supplement.
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+00BF?
- C2 BF (hex), 2 bytes. In a URL it is %C2%BF.
- How do I write U+00BF in JavaScript or Python?
- JavaScript: \u00BF. Python: \u00BF.
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