~/talk

Character set and collation basics

slides:none on file

Explains that single-byte charsets cap at 256 characters and that MySQL’s historical utf8 is 3-byte (no CJK or emoji) while utf8mb4 uses 4 bytes, so sorting/grouping inflates memory and disk (example: three 1-byte chars become 9 bytes when promoted). Demonstrates inserting misencoded bytes via the binary operator producing irrecoverable garbage, shows how to list 4-byte sets with show character set where max_len=4, and recommends use strict sql_mode plus SET NAMES utf8mb4 and choosing narrower charsets for URLs and indexed columns.

AI-written summary · about

  1. 0:00Character sets basics
  2. 1:46Multi-byte character sets impact
  3. 3:53Right character set for storage
  4. 4:35Database/table character sets
  5. 6:08Strict mode to prevent corruption
  6. 9:16Available MySQL character sets
  7. 10:07Collations in sorting and comparison
  8. 12:40Case sensitivity in collations
  9. 13:46String literals with character sets
  10. 14:29Connection character sets
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.