Skip to content

Instantly share code, notes, and snippets.

@pedrogimenez
Last active May 7, 2017 05:51
Show Gist options
  • Save pedrogimenez/4959827 to your computer and use it in GitHub Desktop.
Save pedrogimenez/4959827 to your computer and use it in GitHub Desktop.
Fix for the "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError) problem in Ruby 1.9.3
file = File.open(path, 'r:UTF-8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment