DevKits

ASCII 222

Character 222 (Þ)

Latin-1 Supplement

Latin capital letter with diacritic. Used in Northern European and Icelandic alphabets.

Common uses & context

Decimal 222 (0xDE) is Character 222, part of the Latin-1 Supplement (128–255). Latin capital letter with diacritic. Used in Northern European and Icelandic alphabets. It renders as 'Þ' and its binary byte is 11011110.

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

All encodings at a glance

Decimal222
Hexadecimal0xDE
Octal0336
Binary11011110
HTML numeric entityÞ
URL encoding%DE
UTF-8 bytes0xC3 0x9E

Code snippets

JavaScript

String.fromCharCode(222); // "Þ"
222.toString(16); // "de"

Python

chr(222)           # control char Þ
ord(chr(222))      # 222
hex(222)           # '0xde'

HTML

&#222;   <!-- numeric entity (no named entity for this character) -->

Programming notes

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

Frequently asked questions

What character is ASCII code 222?

ASCII code 222 is the character 'Þ' (Character 222). In hexadecimal it is 0xDE, in octal 0336, and in binary 11011110.

What is 0xDE in ASCII?

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

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

In JavaScript use String.fromCharCode(222); in Python use chr(222); in HTML use the numeric entity &#222;. In a URL it is percent-encoded as %DE, and in UTF-8 it is stored as the byte sequence 0xC3 0x9E.

Is 'Þ' part of standard ASCII?

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

Nearby codes

Encode & convert this character