Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created January 6, 2012 21:15
Show Gist options
  • Select an option

  • Save jfirebaugh/1572442 to your computer and use it in GitHub Desktop.

Select an option

Save jfirebaugh/1572442 to your computer and use it in GitHub Desktop.
[57] pry(main)> ("".encode("US-ASCII") << 128.chr).encoding
=> #<Encoding:ASCII-8BIT>
[58] pry(main)> ("".encode("US-ASCII") << 128).encoding
=> #<Encoding:US-ASCII>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment