Created
November 28, 2013 02:25
-
-
Save JonathonMA/7686382 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'unicode_utils' | |
baffle = 'baffle' | |
puts baffle # => baffle | |
puts baffle.upcase # => BAfflE | |
puts UnicodeUtils.upcase(baffle) # => BAFFLE | |
noel = 'noël' | |
puts noel # => noël | |
puts noel.reverse # => l̈eon | |
normalized_noel = UnicodeUtils.nfkc noel | |
puts normalized_noel # => noël | |
puts normalized_noel.reverse # => lëon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment