Created
May 3, 2010 15:43
-
-
Save mperham/388206 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
# \u00A0 is a Unicode non-breaking space and \s should match it if everything is Unicode-# enabled. | |
> irb | |
>> RUBY_VERSION | |
=> "1.9.1" | |
>> "\u00A0" | |
=> " " | |
>> s = _ | |
=> " " | |
>> s.bytes.to_a | |
=> [194, 160] | |
>> s =~ /\s/ | |
=> nil | |
>> s.encoding | |
=> #<Encoding:UTF-8> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment