Character encoding happens every time we interact with a computer or any digital device. There is no such thing as plain text. Understanding how encoding works, how Ruby handles encoding issues, and how to strategically debug encoding snafus, can be a great asset in your developer toolbox. We will cover a bit of history, dive deep into Ruby's encoding methods, and learn some tricks for managing encoding in your application.
28. RubyConf 2019 @ddlavinder
Things to Remember
Binary is super cool.
There is no such thing as ‘plain text’.
Specify which encodings you accept from your users.
Please use UTF-8!
‘Characters’ are abstract entities.
To decode, you have to know what was used to encode.