Last active
December 11, 2015 16:28
-
-
Save enebo/4627873 to your computer and use it in GitHub Desktop.
This file contains 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
C:\opt\jruby>.\bin\jruby -J-Dfile.encoding=utf-8 gistfile1.rb | |
My UTF-8 String: ✓ ® | |
Original valid utf-8? true | |
Read #1 valid? false | |
Read #2 valid? false | |
Read #3 valid? true | |
Read #4 valid? true | |
Read #5 valid? false | |
Read #6 valid? true | |
Read #7 valid? true | |
C:\opt\jruby>\Ruby193\bin\ruby gistfile1.rb | |
My UTF-8 String: √ r | |
Original valid utf-8? true | |
Read #1 valid? false | |
Read #2 valid? false | |
Read #3 valid? true | |
Read #4 valid? true | |
Read #5 valid? false | |
Read #6 valid? true | |
Read #7 valid? true |
This file contains 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
C:\opt\jruby>.\bin\jruby -Eutf-8 gistfile1.rb | |
My UTF-8 String: ✓ ® | |
Original valid utf-8? true | |
Read #1 valid? true | |
Read #2 valid? true | |
Read #3 valid? true | |
Read #4 valid? true | |
Read #5 valid? true | |
Read #6 valid? true | |
Read #7 valid? true | |
C:\opt\jruby>\Ruby193\bin\ruby -Eutf-8 gistfile1.rb | |
My UTF-8 String: √ r | |
Original valid utf-8? true | |
Read #1 valid? true | |
Read #2 valid? true | |
Read #3 valid? true | |
Read #4 valid? true | |
Read #5 valid? true | |
Read #6 valid? true | |
Read #7 valid? true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment