~/talk

Ruby and Unicode, what could go wr�ng?

Talkat RubyHACK 2018 · 2018-05-03..05-04· [ruby]
slides:none on file

A real failure mode is a non-breaking space slipping past app-store checks and creating a fake WhatsApp listing; Ruby’s ASCII-only strip doesn’t catch that. Ruby adds Unicode normalization (String#unicode_normalize since 2.2) and grapheme-aware iteration to help, but casing quirks (Turkish I) and combining marks make length and comparisons surprising. Examples include using a zero-width joiner to build emoji grapheme clusters and the hidden-binary trick that embeds IDs in invisible characters, so normalize, remove invisibles, and compare on normalized grapheme clusters.

AI-written summary · about

  1. 0:00Start
  2. 10:07Current Unicode version is 10.0
  3. 30:21NFC Normalization Form Canonical Composition
  4. 31:03Compatibility Equivalence
~/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.