Skip to content

Instantly share code, notes, and snippets.

@andresriancho
Created April 11, 2013 12:25
Show Gist options
  • Save andresriancho/5362977 to your computer and use it in GitHub Desktop.
Save andresriancho/5362977 to your computer and use it in GitHub Desktop.
Detect non-ascii chars in scan database file.
import string
for line in file('scan_database.db'):
line = line.strip()
for char in line:
if char not in string.printable:
print repr(char), line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment