ASCII
Ein 7-Bit-Zeichenkodierungsstandard, der 128 spezifischen Zeichen numerische Werte (0-127) zuordnet.
Das Layout von ASCII war mathematisch optimiert für bitweise Operationen. Der Unterschied zwischen Groß- und Kleinbuchstaben liegt genau im 6. Bit. Heute ist ASCII faktisch in Unicode aufgegangen, da die ersten 128 Zeichen identisch sind.
graph LR
Center["ASCII"]:::main
Rel_unicode["unicode"]:::related -.-> Center
click Rel_unicode "/terms/unicode"
Rel_binary["binary"]:::related -.-> Center
click Rel_binary "/terms/binary"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Erkläre es wie einem 5-Jährigen
Computer verstehen keine Buchstaben, nur Zahlen. ASCII ist wie ein universeller Geheimcode. Er sagt: 'Wenn du die Zahl 65 siehst, zeichne ein großes A. Bei 32 mach ein Leerzeichen.'
🤓 Expert Deep Dive
Echtes ASCII ist streng 7-Bit. Die ersten 32 Werte (0x00-0x1F) sind nicht druckbare Steuerzeichen für Fernschreiber (z.B. CR und LF). Das spätere 'Extended ASCII' nutzte das 8. Bit, führte aber zu inkompatiblen Codepages (wie ISO-8859-1). UTF-8 ist genialerweise vollständig abwärtskompatibel zu 7-Bit-ASCII.
❓ Häufig gestellte Fragen
Why is ASCII only 7 bits instead of 8 bits?
When ASCII was developed in the 1960s, a 7-bit code was sufficient to represent the English alphabet, numbers, and punctuation. The 8th bit in a byte was often reserved as a parity bit to check for errors during data transmission over unreliable networks.
What is the difference between ASCII and Unicode?
ASCII is limited to 128 characters and primarily supports English. Unicode is a massive standard designed to support over 149,000 characters across almost every language in the world, plus emojis. However, the first 128 characters of Unicode are identical to ASCII.
What are Extended ASCII codes?
Since computers use 8-bit bytes, the 7-bit ASCII standard left the 8th bit unused (values 128-255). Different companies (like IBM, Apple, and Microsoft) used these extra 128 slots for foreign letters and drawing symbols, creating incompatible 'Extended ASCII' code pages.