view bin/toutf8 @ 2294:70ede24e4f7c

<Jafet> (echo "#!/usr/bin/python"; echo "import random; w=raw_input().split(\' \'); r=[4,7,8,9,2,13,6]; s=random.randrange(0, len(r)); print \' \'.join(chr(3) + str(r[(i+s)%len(r)]) + w[i] for i in range(len(w)))") > bin/rainwords
author HackBot
date Thu, 28 Feb 2013 02:49:19 +0000
parents e037173e0012
children
line wrap: on
line source

#!/usr/bin/python
import sys
import chardet
x = sys.stdin.read()
enc = chardet.detect(x)['encoding']
sys.stdout.write(x.decode(enc).encode('UTF-8'))