Skip to content

Instantly share code, notes, and snippets.

@dogweather
Last active December 31, 2015 09:39
Show Gist options
  • Save dogweather/7968061 to your computer and use it in GitHub Desktop.
Save dogweather/7968061 to your computer and use it in GitHub Desktop.
Search for bytes with a regex
# Repair strings which won't encode into UTF-8
text.gsub(/\x92/n, "'")
text.gsub(/\x97/n, ", ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment