DevKits

ASCII 242

Character 242 (ò)

Latin-1 Supplement

Latin small letter ò. Common in Western European languages.

Common uses & context

Decimal 242 (0xF2) is Character 242, part of the Latin-1 Supplement (128–255). Latin small letter ò. Common in Western European languages. It renders as 'ò' and its binary byte is 11110010.

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

All encodings at a glance

Decimal242
Hexadecimal0xF2
Octal0362
Binary11110010
HTML numeric entityò
URL encoding%F2
UTF-8 bytes0xC3 0xB2

Code snippets

JavaScript

String.fromCharCode(242); // "ò"
242.toString(16); // "f2"

Python

chr(242)           # control char ò
ord(chr(242))      # 242
hex(242)           # '0xf2'

HTML

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

Programming notes

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

Frequently asked questions

What character is ASCII code 242?

ASCII code 242 is the character 'ò' (Character 242). In hexadecimal it is 0xF2, in octal 0362, and in binary 11110010.

What is 0xF2 in ASCII?

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

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

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

Is 'ò' part of standard ASCII?

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

Nearby codes

Encode & convert this character