UTF-8: Unicode Transformation Format – 8-Bit Encoding

UTF-8 = variable-width character encoding for Unicode (all world scripts).

Encoding Rules

  • 1 byte: ASCII (U+0000–U+007F).
  • 2 bytes: U+0080–U+07FF (Latin, Greek, Cyrillic, Hebrew, Arabic).
  • 3 bytes: U+0800–U+FFFF (BMP – most CJK, symbols).
  • 4 bytes: U+10000–U+10FFFF (supplementary planes – emoji, historic scripts).

Key Properties

  • Backward compatible with ASCII.
  • Self-synchronizing (byte patterns indicate sequence length).
  • No byte-order mark (BOM) required (optional).
  • Dominant on web (>98%), email, JSON, XML, Linux/Unix, modern databases.

Comparison

  • UTF-16: 2 or 4 bytes; used in Windows, Java, JS internal strings.
  • UTF-32: fixed 4 bytes; simple indexing, space-inefficient.

Always declare charset: Content-Type: text/html; charset=utf-8.

Neuro-Linguistic Programming (NLP) - Related Articles