Meetup Video
Handling String Encoding Failures/Normalization by Benjamin Fleischer
Recorded November 03, 2015 at ChicagoRuby Downtown
Ruby 1.9 and better is encoding-aware. It has a representation of the external encoding and an internal encoding that it uses to process input and output. Each file has an encoding. The most common place we encounter encodings is when we read in, write, or otherwise manipulate strings. There are a lot of gotchas in working with strings and the possible exceptions they may raise. Learn how to use string encodings and how to handle any encoding issues as you follow my journey from just installing rack-utf8_sanitizer
through writing comprehensive (passing) tests around RSpec’s EncodedString. Works on Windows, too!
About Benjamin Fleischer
Benjamin Fleischer has been a developer since 2010 and is quite active in the open-source software community. In addition to maintaining and collaborating on SimpleCov, AcitveModelSerializers, Mail, RMagick, rack-utf8_sanitizer, Acts-As-Taggable-On, and RubyFriends.com, he has contributed to Passenger, Kaminari, RubyGems, Homebrew, Bcrypt-ruby, CodeClimate test-reporter, Rack, and Rails.
More Videos
-
GitHub UI Lesson | Productivity with GenAI by Joel Hawksley and Chelsea Troy
May 07, 2025
-
Modular Monoliths in Rails: Lessons from 6+ Years at Scale by Lionel Barrow
April 04, 2025
-
Build or Buy? | Does Ruby Love Me Back? by Ifat Ribon and Noel Rappin
March 05, 2025
-
Crystal - The Programming Language by Justin McNally
November 01, 2016
-
ETLS - Not Just for Enterprise by Mark Yoon
October 04, 2016