DevKits

ASCII 171

Left-Pointing Double Angle Quotation Mark («)

Latin-1 Supplement

Latin-1 character.

Common uses & context

Decimal 171 (0xAB) is Left-Pointing Double Angle Quotation Mark, part of the Latin-1 Supplement (128–255). Latin-1 character. It renders as '«' and its binary byte is 10101011.

This is where single-byte ASCII ends and encoding matters. In Latin-1 (ISO-8859-1) '«' is the single byte 0xAB. In UTF-8 — today's default for the web — the same character is the multi-byte sequence 0xC2 0xAB. 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+00AB, and in HTML you can write it as « or «.

All encodings at a glance

Decimal171
Hexadecimal0xAB
Octal0253
Binary10101011
HTML numeric entity«
HTML named entity«
URL encoding%AB
UTF-8 bytes0xC2 0xAB

Code snippets

JavaScript

String.fromCharCode(171); // "«"
171.toString(16); // "ab"

Python

chr(171)           # control char «
ord(chr(171))      # 171
hex(171)           # '0xab'

HTML

&laquo;   <!-- named entity -->
&#171;   <!-- numeric entity -->

Programming notes

  • Single byte 0xAB in Latin-1, but the multi-byte sequence 0xC2 0xAB in UTF-8 — never assume one byte per character above code 127.
  • Unicode code point U+00AB; HTML entity &laquo;.
  • 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+00AB. In UTF-8 it encodes to the byte sequence 0xC2 0xAB. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xAB, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.

Frequently asked questions

What character is ASCII code 171?

ASCII code 171 is the character '«' (Left-Pointing Double Angle Quotation Mark). In hexadecimal it is 0xAB, in octal 0253, and in binary 10101011.

What is 0xAB in ASCII?

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

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

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

Is '«' part of standard ASCII?

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

Nearby codes

Encode & convert this character