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
-
October 2026: Ruby, Rails & Postgres Data Integrity by Steven Zelaznik
October 07, 2026
-
September 2026: Understanding Complexity in Software by Tess Griffin, Chris Fung
September 09, 2026
-
August 2026: AI, Ruby, and the Future of Software Development by Kevin Murphy, Dan Phillips
August 12, 2026
-
July 2026: Staying Indispensable in the Age of AI by Alan Ridlehoover, Tony Yunker
July 01, 2026
-
June 2026: AI, Testing and Code Quality by Ifat Ribon, Fito von Zastrow, Noel Rappin
May 07, 2026