DevKits

ASCII 187

Right-Pointing Double Angle Quotation Mark (»)

Latin-1 Supplement

Latin-1 character.

Common uses & context

Decimal 187 (0xBB) is Right-Pointing Double Angle Quotation Mark, part of the Latin-1 Supplement (128–255). Latin-1 character. It renders as '»' and its binary byte is 10111011.

This is where single-byte ASCII ends and encoding matters. In Latin-1 (ISO-8859-1) '»' is the single byte 0xBB. In UTF-8 — today's default for the web — the same character is the multi-byte sequence 0xC2 0xBB. Treating a Latin-1 byte as UTF-8 (or vice versa) is the usual reason accented letters and symbols turn into mojibake like é or €. The Unicode code point is U+00BB, and in HTML you can write it as » or ».

All encodings at a glance

Decimal187
Hexadecimal0xBB
Octal0273
Binary10111011
HTML numeric entity»
HTML named entity»
URL encoding%BB
UTF-8 bytes0xC2 0xBB

Code snippets

JavaScript

String.fromCharCode(187); // "»"
187.toString(16); // "bb"

Python

chr(187)           # control char »
ord(chr(187))      # 187
hex(187)           # '0xbb'

HTML

&raquo;   <!-- named entity -->
&#187;   <!-- numeric entity -->

Programming notes

  • Single byte 0xBB in Latin-1, but the multi-byte sequence 0xC2 0xBB in UTF-8 — never assume one byte per character above code 127.
  • Unicode code point U+00BB; HTML entity &raquo;.
  • If '»' shows as mojibake, the encoding declared and the encoding used disagree — align both on UTF-8.

Unicode & UTF-8 note

In Unicode this is U+00BB. In UTF-8 it encodes to the byte sequence 0xC2 0xBB. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xBB, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.

Frequently asked questions

What character is ASCII code 187?

ASCII code 187 is the character '»' (Right-Pointing Double Angle Quotation Mark). In hexadecimal it is 0xBB, in octal 0273, and in binary 10111011.

What is 0xBB in ASCII?

Hexadecimal 0xBB equals decimal 187, which is the character '»' (Right-Pointing Double Angle Quotation Mark). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0xBB = 187) and look up that code point.

How do I write the character with code 187 in code?

In JavaScript use String.fromCharCode(187); in Python use chr(187); in HTML use the numeric entity &#187; or the named entity &raquo;. In a URL it is percent-encoded as %BB, and in UTF-8 it is stored as the byte sequence 0xC2 0xBB.

Is '»' part of standard ASCII?

No. Standard ASCII covers codes 0–127 only. '»' is code 187, part of the Latin-1 Supplement (128–255, sometimes called "extended ASCII"). It is a single byte 0xBB in Latin-1 but a multi-byte sequence (0xC2 0xBB) in UTF-8.

Nearby codes

Encode & convert this character