If you want Ruby's string methods to play nicely with Unicode, it's a good idea to normalize them. This article is a brief introduction to Unicode normalization for Rubyists. I recently published an article in which I tested most of Ruby's string methods with certain Unicode characters to see if they would behave unexpectedly. Many of them did. One criticism that a few people had of the article wa
![Unicode Normalization in Ruby](https://cdn-ak-scissors.b.st-hatena.com/image/square/f06bf3994f946f7cbd52f17eee241f5eeaabfe0a/height=288;version=1;width=512/https%3A%2F%2Fondemand.bannerbear.com%2Fsignedurl%2FnZ52rq9EkQ6V3bp1Lj%2Fimage.jpg%3Fmodifications%3DW3sibmFtZSI6InRpdGxlIiwidGV4dCI6IlVuaWNvZGUgTm9ybWFsaXphdGlvbiBpbiBSdWJ5IiwiY29sb3IiOm51bGwsImJhY2tncm91bmQiOm51bGx9LHsibmFtZSI6ImhlYWRzaG90IiwiaW1hZ2VfdXJsIjoiaHR0cHM6Ly93d3cuaG9uZXliYWRnZXIuaW8vaW1hZ2VzL2hlYWRzaG90cy9zdGFycmgucG5nIn0seyJuYW1lIjoic3VtbWFyeSIsInRleHQiOiJJZiB5b3Ugd2FudCBSdWJ5J3Mgc3RyaW5nIG1ldGhvZHMgdG8gcGxheSBuaWNlbHkgd2l0aCBVbmljb2RlLCBpdCdzIGEgZ29vZCBpZGVhIHRvIG5vcm1hbGl6ZSB0aGVtLiBUaGlzIGFydGljbGUgaXMgYSBicmllZiBpbnRyb2R1Y3Rpb24gdG8gVW5pY29kZSBub3JtYWxpemF0aW9uIGZvciBSdWJ5aXN0cy4iLCJjb2xvciI6bnVsbCwiYmFja2dyb3VuZCI6bnVsbH0seyJuYW1lIjoiYXV0aG9yIiwidGV4dCI6IkJ5ICpTdGFyciBIb3JuZSoiLCJjb2xvciI6bnVsbCwiYmFja2dyb3VuZCI6bnVsbH0seyJuYW1lIjoidGFncyIsInRleHQiOiIjcnVieSIsImNvbG9yIjpudWxsLCJiYWNrZ3JvdW5kIjpudWxsfV0%26s%3Dbade322f714cd43ef286d095b0025df107b16d1e581d8d516668e80a61a5c528)