DevKits

ASCII 168

Diaeresis (¨)

Latin-1 Supplement

Latin-1 character.

Common uses & context

Decimal 168 (0xA8) is Diaeresis, part of the Latin-1 Supplement (128–255). Latin-1 character. It renders as '¨' and its binary byte is 10101000.

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

All encodings at a glance

Decimal168
Hexadecimal0xA8
Octal0250
Binary10101000
HTML numeric entity¨
HTML named entity¨
URL encoding%A8
UTF-8 bytes0xC2 0xA8

Code snippets

JavaScript

String.fromCharCode(168); // "¨"
168.toString(16); // "a8"

Python

chr(168)           # control char ¨
ord(chr(168))      # 168
hex(168)           # '0xa8'

HTML

&uml;   <!-- named entity -->
&#168;   <!-- numeric entity -->

Programming notes

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

Frequently asked questions

What character is ASCII code 168?

ASCII code 168 is the character '¨' (Diaeresis). In hexadecimal it is 0xA8, in octal 0250, and in binary 10101000.

What is 0xA8 in ASCII?

Hexadecimal 0xA8 equals decimal 168, which is the character '¨' (Diaeresis). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0xA8 = 168) and look up that code point.

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

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

Is '¨' part of standard ASCII?

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

Nearby codes

Encode & convert this character