Cent sign
ASCII code 162 (0xA2) represents the Cent sign character in the extended ASCII table (128–255). It is a widely recognized symbol used in international commerce, intellectual property, or mathematical notation. The extended ASCII range builds upon the original 128-character ASCII set, adding accented letters, currency symbols, typographic marks, and mathematical symbols. These characters are defined by the Windows-1252 (CP-1252) encoding, which is a superset of ISO 8859-1 (Latin-1). In modern web development, UTF-8 encoding is preferred, but understanding extended ASCII remains important for legacy system compatibility and character encoding troubleshooting.
| Decimal | 162 |
| Octal | 242 |
| Hexadecimal | 0xA2 |
| Binary | 10100010 |
| HTML Code | ¢ |
| HTML Entity | ¢ |
| Unicode | U+00A2 |
| Unicode Name | CENT SIGN |
| URL Escape | %A2 |
| Quoted-Printable | =A2 |
| UTF-8 (Hex) | C2 A2 |
| Category | Extended — Symbols & Signs |
// Character literal
let char = '¢';
// Using char code
let char2 = String.fromCharCode(162);
// Unicode escape
let char3 = '\u00A2'; # Character literal
char = '¢'
# Using chr()
char = chr(162)
# Using ord() to get code
code = ord('¢') # Returns 162 <!-- Direct character -->
¢
<!-- HTML entity (numeric) -->
¢
<!-- Hex entity -->
¢ // Character literal
char c = '¢';
// Using cast
char c2 = (char)162;
// To get code from char
int code = (int)'¢'; // Returns 162