Skip to content

Instantly share code, notes, and snippets.

@timothyekl
Created November 27, 2013 17:13
Show Gist options
  • Save timothyekl/7679418 to your computer and use it in GitHub Desktop.
Save timothyekl/7679418 to your computer and use it in GitHub Desktop.
str = "noël" # decomposed
puts str.reverse # expect lëon
puts str[0..2] # expect noë
puts str.length # expect 4
str = "😸😾" # emoji
puts str.reverse # expect 😾😸
puts str[1..str.length] # expect 😾
puts str.length # expect 2
str = "baffle" # with ligature
puts str.upcase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment