°

ASCII Character: Degree sign

ASCII Code 176 · Unicode U+00B0 · Hex 0xB0

degree-sign degree

About the Degree sign Character

ASCII code 176 (0xB0) represents the Degree sign character in the extended ASCII table (128–255). It is part of the extended ASCII character set defined by the Windows-1252 (CP-1252) encoding. 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 176
Hexadecimal 0xB0
Octal 260
Binary 10110000
Unicode U+00B0
Unicode Name DEGREE SIGN
HTML Numeric °
HTML Entity °
URL Escape %B0
UTF-8 (Hex) C2 B0
Quoted-Printable =B0

Source Code Examples

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

Navigate

Copied!