¥

ASCII Character: Yen sign

ASCII Code 165 · Unicode U+00A5 · Hex 0xA5

yen-sign yen

About the Yen sign Character

ASCII code 165 (0xA5) represents the Yen 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.

Encoding Details

ASCII Code 165
Hexadecimal 0xA5
Octal 245
Binary 10100101
Unicode U+00A5
Unicode Name YEN SIGN
HTML Numeric ¥
HTML Entity ¥
URL Escape %A5
UTF-8 (Hex) C2 A5
Quoted-Printable =A5

Source Code Examples

JavaScript
// Character literal
let char = '¥';
// Using char code
let char2 = String.fromCharCode(165);
// Unicode escape
let char3 = '\u00A5';
Python
# Character literal
char = '¥'
# Using chr()
char = chr(165)
# Using ord() to get code
code = ord('¥')  # Returns 165
HTML
<!-- Direct character -->
¥
<!-- HTML entity (numeric) -->
&#165;
<!-- Hex entity -->
&#xA5;
C#
// Character literal
char c = '¥';
// Using cast
char c2 = (char)165;
// To get code from char
int code = (int)'¥';  // Returns 165

Navigate

Copied!