Advanced Unicode
summary
History and pitfalls of Unicode with concrete numbers and tools: Unicode covers ≈1,114,112 code points, UTF‑8 encodes characters in 1–4 bytes, UTF‑32 uses 4 bytes per code point and UTF‑16 uses surrogate pairs to reach beyond 16 bits. Python strings pick a per‑string internal width of 1/2/4 bytes depending on content. Demonstrates when BOMs and misdetected encodings break parsing, how to use unicodedata.normalize (NFC/NFD) and the third‑party regex module, and cites surprising counts like 17 space characters and ~700 punctuation symbols.
AI-written summary · about
chapters (18)
- 0:00Introduction to Unicode
- 3:38What is Unicode
- 7:19Unicode encoding formats
- 10:59UTF-8 encoding details
- 15:06Legacy encoding issues
- 18:26Encoding and decoding errors
- 21:01Composite characters in Unicode
- 23:11Unicode normalization
- 26:08Unicode character categories
- 28:45Regex for Unicode text
- 30:51Percent-encoding in URLs
- 33:50Punycode for international domains
- 37:01Unicode standards and compatibility
- 40:35Advanced Unicode sorting
- 42:00Python’s Unicode handling
- 44:52Unicode pitfalls and security
- 45:55Memory and performance with Unicode strings
- 47:22Q&A
