Created
February 24, 2015 13:40
-
-
Save launchkit-codes/0f4049537306b5ffaec2 to your computer and use it in GitHub Desktop.
Display Extended-ASCII characters in RUBY
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
| # 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