ChicagoRuby is a group of developers & designers who use Ruby, Rails, and related tech.

Video icon Meetup Video

Handling String Encoding Failures/Normalizat­­­i­­on 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

  • Crystal - The Programming Language by Justin McNally

    November 01, 2016

  • ETLS - Not Just for Enterprise by Mark Yoon

    October 04, 2016

  • RubyMine's Jewels by Malcolm Newsome

    September 06, 2016

  • Number Theory: Why Cryptography Works by Jeffrey Rabovsky

    August 02, 2016

  • How to Build and Maintain Large Ruby Apps by Enrico Teotti

    July 05, 2016

Arrow icon Full Video Archive