Skip to content

Instantly share code, notes, and snippets.

@mando
Created February 4, 2013 21:10
Show Gist options
  • Save mando/4709744 to your computer and use it in GitHub Desktop.
Save mando/4709744 to your computer and use it in GitHub Desktop.
[~]$ ruby -Ku -e 'puts "Kevin Sjöberg".bytes.to_a.inspect' [ruby-1.8.7-p358]
[75, 101, 118, 105, 110, 32, 83, 106, 195, 182, 98, 101, 114, 103]
[~]$ ruby scratch.rb "Kevin Sjöberg" [ruby-1.8.7-p358]
[75, 101, 118, 105, 110, 32, 83, 106, 195, 182, 98, 101, 114, 103]
[~]$ [ruby-1.8.7-p358]
[~]$ cat scratch.rb [ruby-1.8.7-p358]
#!/usr/bin/env ruby -Ku
puts ARGV[0].bytes.to_a.inspect
[75, 101, 118, 105, 110, 32, 83, 106, 111, 204, 136, 98, 101, 114, 103]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment