Chapter 1 · SimulationASCII Table? ← Chapter 1 0–127 128–255Encoding for 128–255 ISO-8859-1 (Latin-1) = Unicode U+0080–U+00FF Windows-1254 (Turkish) CloseASCII TableBrowse the character codes from 0 to 255; search by decimal value, hex value (0x41) or the visible character; compare standard ASCII with the two common 8-bit extensions.How to use it0–127 / 128–255 switches the half of the table that is shown. The column header is the low hex digit and the row header is the high hex digit (row 4_, column 1 → 0x41 = 65 = 'A').Click a cell or move with the arrow keys (Home / End jump to the first / last cell). The panel on the right shows the code's decimal, hex, octal and binary values, its Unicode code point, its UTF-8 bytes and the Java char literal.As you type in the search box, cells that do not match fade out; Enter selects the first match.Character encodingsCodes 0–127 are standard ASCII: 0–31 and 127 are control characters (e.g. 9 TAB '\t', 10 LF '\n', 13 CR '\r'), and 32 is the space.Codes 128–255 are not part of ASCII. In ISO-8859-1 the byte n is exactly the Unicode code point U+00nn; this view is also the first 256 Unicode code points (128–159 are C1 control characters).Windows-1254 is the Turkish code page: it puts the letters Ğ ğ İ ı Ş ş at 208, 240, 221, 253, 222, 254, and uses 128–159 for printable symbols such as € and “ ”. Cells that differ from ISO-8859-1 are shaded; seven codes are undefined. Here the Java char value differs from the byte: byte 208 decodes to 'Ğ' = U+011E = 286.The Java char type is a 16-bit UTF-16 code unit, so (int) 'A' is 65 and (char) 65 is 'A'. In UTF-8, codes 0–127 take one byte and the rest of the table takes two or three.The Windows-1254 mapping and the UTF-8 bytes were generated with Java (new String(bytes, "windows-1254"), getBytes("UTF-8")).Related slides: Chapter 1.1 · Computers.