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のUnicode文字は後方互換性のため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と競合しました。

📚 出典