$ is the Unicode character FULLWIDTH DOLLAR SIGN, code point U+FF04 (decimal 65284) in the Halfwidth and Fullwidth Forms block, added in Unicode 1.1. In HTML write $, and in UTF-8 it is the 3 bytes EF BC 84.
Codes
| Where | How to write it |
|---|---|
| Code point | U+FF04 |
| Decimal | 65284 |
| UTF-8 bytes | EF BC 84 |
| UTF-16 (big-endian) | FF04 |
| UTF-32 | 0000FF04 |
| HTML decimal | $ |
| HTML hex | $ |
| CSS | \FF04 |
| JavaScript | \uFF04 |
| JSON | \uFF04 |
| Python | \uFF04 |
| Python by name | \N{FULLWIDTH DOLLAR SIGN} |
| Java, C# | \uFF04 |
| Rust, Swift | \u{FF04} |
| Go, C, C++ | \uFF04 |
| URL (percent-encoded) | %EF%BC%84 |
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 | FULLWIDTH DOLLAR SIGN |
| Code point | U+FF04 (decimal 65284) |
| Block | Halfwidth and Fullwidth Forms (U+FF00–U+FFEF) |
| General category | Sc: Currency symbol |
| Script | Common |
| Bidirectional class | ET: European number terminator |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
FULLWIDTH DOLLAR SIGN has a compatibility decomposition (wide) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Nearby in Halfwidth and Fullwidth Forms
- ! U+FF01 Fullwidth Exclamation Mark
- " U+FF02 Fullwidth Quotation Mark
- # U+FF03 Fullwidth Number Sign
- % U+FF05 Fullwidth Percent Sign
- & U+FF06 Fullwidth Ampersand
- ' U+FF07 Fullwidth Apostrophe
- ( U+FF08 Fullwidth Left Parenthesis
- ) U+FF09 Fullwidth Right Parenthesis
- * U+FF0A Fullwidth Asterisk
- + U+FF0B Fullwidth Plus Sign
- , U+FF0C Fullwidth Comma
All 225 characters: Halfwidth and Fullwidth Forms.
Official reference
Questions people ask
- What is the HTML code for $?
- Use $ (decimal) or $ (hex).
- What is the UTF-8 encoding of U+FF04?
- EF BC 84 (hex), 3 bytes. In a URL it is %EF%BC%84.
- How do I write U+FF04 in JavaScript or Python?
- JavaScript: \uFF04. Python: \uFF04.
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