Skip to content

Instantly share code, notes, and snippets.

@dblotsky
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dblotsky/178f8db46787d55b44f2 to your computer and use it in GitHub Desktop.
Save dblotsky/178f8db46787d55b44f2 to your computer and use it in GitHub Desktop.
Translate a well-formatted ASCII binary string into readable English.
binary = '01001001 00100000 01100010 01100101 01101100 01101001 01100101 01110110 01100101 00100000 01101001 01101110 00100000 01111001 01101111 01110101 00100000 00111100 00110011'
english = ''.join(chr(int(c, 2)) for c in binary.split(' '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment