ASCII

128개 문자를 숫자로 매핑하는 7비트 인코딩.

ASCII(American Standard Code for Information Interchange)는 1963년에 발표된 문자 인코딩 표준으로, 128개의 문자를 7비트 이진수(0-127)에 매핑합니다.

문자 범위:
- 0-31: 제어 문자(비출력)
- 32-126: 출력 가능 문자(95자)
- 48-57: 숫자 0-9
- 65-90: 대문자 A-Z
- 97-122: 소문자 a-z
- 127: DEL(삭제)

첫 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는 'A=65, B=66, C=67...'이라고 말하는 비밀 코드 같은 것으로, 당신이 입력할 때 어떤 문자를 의미하는지 컴퓨터가 알 수 있게 합니다!

🤓 Expert Deep Dive

제어 문자(0x00-0x1F)는 텔레타이프 명령에서 유래했습니다. CR+LF(0x0D+0x0A)와 LF(0x0A) 줄 끝은 OS에 따라 다릅니다. EBCDIC(IBM)은 초기에 ASCII와 경쟁했습니다.

📚 출처