ASCII (아스키)

128개의 문자를 0부터 127까지의 숫자 값에 매핑하는 7비트 문자 인코딩 표준.

ASCII의 배열은 비트 연산에 유리하게 설계되었습니다. 대문자와 소문자의 차이는 6번째 비트 하나뿐입니다. 오늘날 Unicode의 첫 128개 문자는 ASCII 테이블과 정확히 동일합니다.

        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;

      

🧒 5살도 이해할 수 있게 설명

컴퓨터는 숫자만 이해합니다. ASCII는 '숫자 65를 보면 대문자 A를 그리고, 32를 보면 빈칸을 만들어라'라고 말해주는 전 세계 공통의 비밀 암호입니다.

🤓 Expert Deep Dive

순수 ASCII는 엄격하게 7비트입니다. 제어 문자(0x00-0x1F)는 CR(캐리지 리턴) 및 LF(라인 피드)와 같은 텔레타이프 장비를 위해 설계되었습니다. 8번째 비트를 활용한 '확장 ASCII'는 파편화를 가져왔지만, 이후 UTF-8은 7비트 ASCII와의 완벽한 하위 호환성을 보장하도록 설계되었습니다.

❓ 자주 묻는 질문

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.

📚 출처