{
  "slug": "utf-8",
  "term": "UTF-8",
  "aliases": [
    "UTF8"
  ],
  "definition": "UTF-8 is a Unicode encoding that represents each Unicode scalar value using one to four octets while preserving ASCII byte values.",
  "note": "Validity: Unicode scalar values exclude the surrogate range U+D800 to U+DFFF. Well-formed UTF-8 also excludes overlong encodings and values beyond U+10FFFF. A strict decoder must reject malformed sequences rather than interpret them as valid scalar values. [rfc-utf8]\n\nSize: U+0041 is hexadecimal 41, U+20AC is E2 82 AC, and U+1F600 is F0 9F 98 80. The last example is one scalar value but four UTF-8 bytes and two UTF-16 code units. Count the actual encoded bytes for byte-limited storage fields. [rfc-utf8] [unicode-encoding]\n\nIdentity: UTF-8 has no little-endian or big-endian variant. It does not normalize text: U+00E9 and U+0065 U+0301 have different UTF-8 bytes despite canonical equivalence. Specify normalization separately, and preserve original bytes when exact recovery requires them. [rfc-bom] [unicode-normalization]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    "Valid UTF-8 alone does not establish byte identity, canonical normalization or filename equivalence."
  ],
  "related": [
    "ascii",
    "character-encoding",
    "unicode-normalization",
    "byte",
    "byte-order",
    "filename-collision",
    "unicode-scalar-value"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-20",
  "citations": [
    {
      "id": "rfc-utf8",
      "title": "RFC 3629: sections 3 and 4, UTF-8 definition and byte syntax",
      "url": "https://www.rfc-editor.org/rfc/rfc3629.html#section-3",
      "accessed": "2026-11-17"
    },
    {
      "id": "unicode-encoding",
      "title": "Unicode 17.0.0: chapter 3, section 3.9, Unicode encoding forms",
      "url": "https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/",
      "accessed": "2026-11-17"
    },
    {
      "id": "rfc-bom",
      "title": "RFC 3629: section 6, byte order mark",
      "url": "https://www.rfc-editor.org/rfc/rfc3629.html#section-6",
      "accessed": "2026-11-17"
    },
    {
      "id": "unicode-normalization",
      "title": "Unicode Standard Annex 15 revision 57: canonical and compatibility equivalence",
      "url": "https://www.unicode.org/reports/tr15/tr15-57.html#Introduction",
      "accessed": "2026-11-17"
    },
    {
      "id": "hesela-filenames",
      "title": "Hesela: filename identity and backup restores",
      "url": "https://hesela.com/analyses/filename-identity-backup-restores/#text-encoding",
      "accessed": "2026-11-17"
    }
  ],
  "provenance": [
    "Source-reviewed UTF-8 definition; bounded executable examples: https://hesela.dev/research/text-encoding.mjs and tests: https://hesela.dev/research/text-encoding.test.mjs."
  ]
}
