Skip to content

Instantly share code, notes, and snippets.

@mnemocron
Created August 25, 2017 06:54
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 mnemocron/7fdc87364275733856f429bc77a1061b to your computer and use it in GitHub Desktop.
Save mnemocron/7fdc87364275733856f429bc77a1061b to your computer and use it in GitHub Desktop.
quick unicode garbage creator
#!/usr/bin/python
#_*_ coding: utf-8 _*_
# python unicode-spammer.py > unicodes.txt
# generates all possible unicode characters
# use the generated garbage to test the behaviour of user input fields
# GIGO
import unicodedata
outstring = ""
for i in range(0xffff):
outstring += (unichr(i).encode('utf-8'))
if ( (i % 256) == 0 ):
print (outstring)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment