Skip to content

Instantly share code, notes, and snippets.

@sampollard
Last active February 11, 2017 23:53
Show Gist options
  • Save sampollard/738f1cea9522a3cdec9565acad009dbe to your computer and use it in GitHub Desktop.
Save sampollard/738f1cea9522a3cdec9565acad009dbe to your computer and use it in GitHub Desktop.
Save every printable unicode character to a file
# Enumerate every printable character
# It could be fun to find an interesting subset
from __future__ import print_function
import random
f = open("all.txt", "w")
for i in range(200000):
try:
f.write(unichr(i).encode("utf8"))
except ValueError:
pass
f.write("\n")
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment