DevKits

ASCII 228

Character 228 (ä)

Latin-1 Supplement

Latin small letter ä. Common in Western European languages.

Common uses & context

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

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

All encodings at a glance

Decimal228
Hexadecimal0xE4
Octal0344
Binary11100100
HTML numeric entityä
URL encoding%E4
UTF-8 bytes0xC3 0xA4

Code snippets

JavaScript

String.fromCharCode(228); // "ä"
228.toString(16); // "e4"

Python

chr(228)           # control char ä
ord(chr(228))      # 228
hex(228)           # '0xe4'

HTML

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

Programming notes

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

Frequently asked questions

What character is ASCII code 228?

ASCII code 228 is the character 'ä' (Character 228). In hexadecimal it is 0xE4, in octal 0344, and in binary 11100100.

What is 0xE4 in ASCII?

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

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

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

Is 'ä' part of standard ASCII?

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

Nearby codes

Encode & convert this character