ChicagoRuby: Downtown - Handling String Encoding Failures/Normalization


Details
Topic: Handling String Encoding Failures/Normalization in Ruby
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 the Presenter:
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.
After most downtown meetings we head over to Elephant & Castle (185 N. Wabash) for refreshments & fellowship. Join us for a few minutes if you have time.
Please use your real name when you RSVP for downtown ChicagoRuby meetings. Reason: We are required to give a list of all attendees to the security desk prior to the meeting. If the name on your ID doesn't the match the name on the RSVP list, then Aon security will not let you in the building. Sorry for the inconvenience, but those are the rules of the Aon Building.
WindyCityRails
Level up your skills. WindyCityRails is Chicago's Ruby on Rails conference, happening in September.
Details: http://windycityrails.org (http://windycityrails.org/)

ChicagoRuby: Downtown - Handling String Encoding Failures/Normalization