~/talk

How to Become an Encoding Champion

Talkat RubyConf 2019 · 2019-11-18..11-20· [ruby, web-platform]
slides:none on file

Explains why encoding causes real bugs and how to fix them: Ruby’s encode vs force_encoding distinction (encode rewrites bytes irreversibly, force_encoding only reinterprets) solves the author’s bug where a response arrived as ASCII-8BIT despite a UTF-8 request; shows using bytesize, bytes, ord and chr to inspect data; cites UTF-8 adoption >94% of pages and Unicode 137,929 characters (May 2019); covers Base64 behavior: encode64 inserts linefeeds every 60 chars unless strict is used and strict_decode raises an error.

AI-written summary · about

  1. 0:00Intro
  2. 1:20What is Encoding
  3. 2:55Encoding vs Decoding
  4. 3:59Encoding Basics
  5. 8:26ASCII
  6. 10:54Unicode
  7. 19:59Encoding
  8. 27:03Base64
  9. 29:32Strict
  10. 31:00Things to Remember
  11. 31:52Outro
~/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.