Skip to content

Instantly share code, notes, and snippets.

@devgiordane
Created October 4, 2018 01:02
Show Gist options
  • Save devgiordane/fdd40331f8e93502d1bd9e8fa41d9254 to your computer and use it in GitHub Desktop.
Save devgiordane/fdd40331f8e93502d1bd9e8fa41d9254 to your computer and use it in GitHub Desktop.
Generates a file to save all Unicode characters and codes. the generated file has a further 14 Mb and the list will have 1,114,111 items.
characters = []
for character in range(0, 1114111):
characters.append(chr(character))
f = open('unicode.txt','w')
f.write(str(characters))
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment