A bit over a year ago, I posted about Unicode normalization forms, mainly in a .NET context.

Today, I happened to learn how this is done in Ruby from a coworker’s pull request.

"ボ".unicode_normalize(:nfkc) == "ボ".unicode_normalize(:nfkd)
=> false

Documentation: https://apidock.com/ruby/v2_5_5/String/unicode_normalize


<
Previous Post
The Joy of Learning, Function Composition–Style
>
Blog Archive
Archive of all previous blog posts