Last active
February 11, 2017 23:53
-
-
Save sampollard/738f1cea9522a3cdec9565acad009dbe to your computer and use it in GitHub Desktop.
Save every printable unicode character to a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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