Skip to content

Instantly share code, notes, and snippets.

@ConradIrwin
Created July 18, 2010 01:12
Show Gist options
  • Save ConradIrwin/480007 to your computer and use it in GitHub Desktop.
Save ConradIrwin/480007 to your computer and use it in GitHub Desktop.
>> $KCODE
=> "NONE"
>> "\xc2\xb7" =~ /\w/
=> nil
>> "\xc2\xb7" =~ /[\w]/
=> nil
>> $KCODE="UTF8"
=> "UTF8"
>> "\xc2\xb7" =~ /\w/
=> 0
>> "\xc2\xb7" =~ /[\w]/
=> 0
>> "\xc2" =~ /[\w]/
=> 0
>> "\xc2" =~ /\w/
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment