Mercurial > repo
view bin/toutf8 @ 6923:a66d8f61b2a7
<b_jonas> slashlearn one ring/One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them
author | HackBot |
---|---|
date | Sun, 21 Feb 2016 12:46:48 +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'))