Skip to content

Instantly share code, notes, and snippets.

@launchkit-codes
Created February 24, 2015 13:40
Show Gist options
  • Select an option

  • Save launchkit-codes/0f4049537306b5ffaec2 to your computer and use it in GitHub Desktop.

Select an option

Save launchkit-codes/0f4049537306b5ffaec2 to your computer and use it in GitHub Desktop.
Display Extended-ASCII characters in RUBY
# more information here: http://ruby-doc.org//core-2.2.0/Integer.html#method-i-chr
puts 219.chr #=> "?"
puts 219.chr(Encoding::UTF_8) #=> "Û"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment