~/talk

The Unauthorized History of UTF

Talkat Core C++ 2024 · 2024-11-26..11-28· [c-and-cpp, web-platform]
links:none on file
slides:none on file

Chronological account of why we have UTF-8, UTF-16 and UTF-32, with concrete tradeoffs and bugs: UTF-8 backwards-compatible with ASCII and saves space but allows invalid sequences that crash real software (example: a game chat causing a DoS). UTF-16 uses surrogate pairs make UTF-16 variable-length to reach characters beyond 65,536 (emoji, rare Chinese), Windows keeps 16-bit wide chars, C/C++ transcoding APIs are being deprecated and a P272 range-adapter implementation exists for safe transcoding.

AI-written summary · about

  1. 0:00Introduction to UTF history
  2. 1:49Early text encoding systems
  3. 3:16Limitations of ASCII and code pages
  4. 5:04Birth of Unicode and 16-bit assumption
  5. 7:12UTF-8 design and backwards compatibility
  6. 9:20Problems with invalid UTF-8
  7. 10:24UTF-8 vs UCS-2 trade-offs
  8. 11:08Language interfaces for Unicode
  9. 12:30Emojis and font-based symbols
  10. 14:55Unicode running out of space
  11. 15:56Introduction of UTF-16
  12. 18:05Why switch to UTF-16
  13. 18:45UTF-32 and its limitations
  14. 19:06Windows vs POSIX wide character issues
  15. 20:13Modern C++ Unicode interfaces
  16. 22:01Proposal for better Unicode handling
  17. 23:07Timeline and rare Chinese characters
  18. 23:34Q&A: Unicode character limits
  19. 24:59Q&A: Detecting UTF encoding
  20. 25:45Q&A: Cross-platform file paths
  21. 26:47Q&A: Invalid UTF-16 paths
  22. 27:51Q&A: Exception handling in interfaces
  23. 28:12Q&A: C++ standard iteration limits
  24. 29:18Summary and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.